Skip to content

Commit 83f90be

Browse files
fix(docs): fix outdated PHPUnit class names
1 parent 3e5d2e8 commit 83f90be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class MyTestCase extends TestCase
121121
Asserts that the JSON value found in `$doc` at JSON path `$jsonPath` is equal
122122
to `$expected`.
123123

124-
##### `assertJsonValueMatches($doc, $jsonPath, PHPUnit_Framework_Constraint $constraint)`
124+
##### `assertJsonValueMatches($doc, $jsonPath, \PHPUnit\Framework\Constraint $constraint)`
125125

126126
Asserts that the JSON value found in `$doc` at JSON path `$jsonPath` matches
127127
the constraint `$constraint`.
@@ -132,7 +132,7 @@ Example:
132132
$this->assertJsonValueMatches(
133133
$jsonDocument,
134134
'$.age',
135-
PHPUnit_Framework_Assert::greaterThanOrEqual(18)
135+
\PHPUnit\Framework\Assert::greaterThanOrEqual(18)
136136
);
137137
```
138138

@@ -147,7 +147,7 @@ Example:
147147
```php
148148
$this->assertJsonDocumentMatches($jsonDocument, [
149149
'$.username' => 'mhelmich',
150-
'$.age' => PHPUnit_Framework_Assert::greaterThanOrEqual(18)
150+
'$.age' => \PHPUnit\Framework\Assert::greaterThanOrEqual(18)
151151
]);
152152
```
153153

0 commit comments

Comments
 (0)