Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 5, 2020
1 parent 1a82e08 commit d53078c
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 @@ -15,16 +15,14 @@ The following web test case consists of opening GitHub's homepage and asserting

```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]
public function home() {
$this->beginAt('/');
$this->assertStatus(HttpConstants::STATUS_OK);
$this->assertStatus(200);
$this->assertTitleEquals('GitHub · Build software better, together.');
}
}
Expand Down

0 comments on commit d53078c

Please sign in to comment.