Skip to content

Commit

Permalink
Use PHP 8 attributes in forms example
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Mar 4, 2022
1 parent 083de94 commit d253ec1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ Forms
To work with forms, the `getForm()` method can be used:

```php
use unittest\web\WebTestCase;
use unittest\web\{WebTestCase, Webtest};
use unittest\Test;

#[@webtest(['url' => 'https://github.com/'])]
#[Webtest(['url' => 'https://github.com/'])]
class GitHubTestCase extends WebTestCase {

#[@test]
#[Test]
public function search_for() {
$this->beginAt('/');
$form= $this->getForm();
Expand Down

0 comments on commit d253ec1

Please sign in to comment.