Skip to content

Commit

Permalink
Advertise PHP 8 attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 4, 2020
1 parent 71c494e commit cd8c9e9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ Example
The following web test case consists of opening GitHub's homepage and asserting the title to equal the company's name:

```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 home() {
$this->beginAt('/');
$this->assertStatus(200);
Expand All @@ -31,7 +32,7 @@ class GitHubTestCase extends WebTestCase {
Running it works as with normal test cases:

```sh
$ unittest GitHubTestCase
$ xp test GitHubTestCase
[.]

✓: 1/1 run (0 skipped), 1 succeeded, 0 failed
Expand Down

0 comments on commit cd8c9e9

Please sign in to comment.