Skip to content

Commit

Permalink
Fix example [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 5, 2020
1 parent d53078c commit 4d0b736
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ To work with forms, the `getForm()` method can be used:

```php
use unittest\web\WebTestCase;
use peer\http\HttpConstants;
use peer\http\HttpConnection;

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

#[@test]
Expand All @@ -86,7 +84,7 @@ class GitHubTestCase extends WebTestCase {
$form= $this->getForm();
$form->getField('q')->setValue('XP Framework');
$form->submit();
$this->assertStatus(HttpConstants::STATUS_OK);
$this->assertStatus(200);
$this->assertTitleEquals('Search · XP Framework · GitHub');
}
}
Expand Down

0 comments on commit 4d0b736

Please sign in to comment.