Skip to content

Commit fa0bb94

Browse files
authored
Merge pull request #40 from Codeception/test-with-phpunit8
Test compatibility with PHPUnit 8 and new assertions
2 parents a4ce274 + ee6ca60 commit fa0bb94

File tree

6 files changed

+227
-1478
lines changed

6 files changed

+227
-1478
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,32 @@ verify($user->getPosts())->notNull();
4242
// empty
4343
verify($user->getComments())->isEmpty();
4444
verify($user->getRoles())->notEmpty();
45+
46+
//Other methods:
47+
* stringContainsString
48+
* stringNotContainsString
49+
* stringContainsStringIgnoringCase
50+
* stringNotContainsStringIgnoringCase
51+
* array
52+
* bool
53+
* float
54+
* int
55+
* numeric
56+
* object
57+
* resource
58+
* string
59+
* scalar
60+
* callable
61+
* notArray
62+
* notBool
63+
* notFloat
64+
* notInt
65+
* notNumeric
66+
* notObject
67+
* notResource
68+
* notString
69+
* notScalar
70+
* notCallable
4571
```
4672

4773
Shorthands for testing truth/fallacy:
@@ -51,6 +77,7 @@ verify_that($user->isActivated());
5177
verify_not($user->isBanned());
5278
```
5379

80+
5481
These two functions don't check for strict true/false matching, rather `empty` function is used.
5582
`verify_that` checks that result is not empty value, `verify_not` does the opposite.
5683

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
],
1111
"require": {
1212
"php": ">= 7.0",
13-
"phpunit/phpunit": "> 6.0"
13+
"phpunit/phpunit": "> 6.0",
14+
"codeception/phpunit-wrapper": ">6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.0.4"
1415
},
1516
"autoload": {
1617
"files": ["src/Codeception/function.php"],

0 commit comments

Comments
 (0)