- Removed support for
PHP 7.1
&PHP 7.2
.
In version 2.x
, verifiers
can be used as classes. Each verifier class handles a specific type of data.
Thanks to this you can enjoy an autocompletion of your IDE
much more intelligent than before...
That is why we remove some global functions that have a less intuitive behavior.
According to the above:
verify
no longer receives astring $message
as a parameter, now each verifier fulfills this function.verify_not
was deleted. Useverify()->empty
instead.expect_that
andexpect_not
were deleted. Useexpect()->notEmpty
andexpect()->empty
instead.expect_file
andsetIsFileExpectation
were deleted. UseVerify::File()
instead.
Verify 1.x | Verify 2.x |
---|---|
verify()->array |
verify()->isArray |
verify()->bool |
verify()->isBool |
verify()->callable |
verify()->isCallable |
verify()->float |
verify()->isFloat |
verify()->greaterOrEquals |
verify()->greaterThanOrEqual |
verify()->int |
verify()->isInt |
verify()->isEmpty |
verify()->empty |
verify()->isInstanceOf |
verify()->instanceOf |
verify()->isNotInstanceOf |
verify()->notInstanceOf |
verify()->lessOrEquals |
verify()->lessThanOrEqual |
verify()->notArray |
verify()->isNotArray |
verify()->notBool |
verify()->isNotBool |
verify()->notCallable |
verify()->isNotCallable |
verify()->notFloat |
verify()->isNotFloat |
verify()->notInt |
verify()->isNotInt |
verify()->notNumeric |
verify()->isNotNumeric |
verify()->notObject |
verify()->isNotObject |
verify()->notResource |
verify()->isNotResource |
verify()->notScalar |
verify()->isNotScalar |
verify()->notString |
verify()->isNotString |
verify()->numeric |
verify()->isNumeric |
verify()->object |
verify()->isObject |
verify()->resource |
verify()->isResource |
verify()->scalar |
verify()->isScalar |
verify()->string |
verify()->isString |
verify()->hasAttribute |
Verify()->baseObjectHasAttribute |
verify()->notHasAttribute |
Verify()->baseObjectNotHasAttribute |
verify()->throws |
Verify()->callableThrows |
verify()->doesNotThrow |
Verify()->callableDoesNotThrow |
verify()->hasStaticAttribute |
Verify()->classHasStaticAttribute |
verify()->notHasStaticAttribute |
Verify()->classNotHasStaticAttribute |
verify()->hasAttribute |
Verify()->classHasAttribute |
verify()->notHasAttribute |
Verify()->classNotHasAttribute |
verify()->notExists |
Verify()->fileDoesNotExists |
verify()->regExp |
Verify()->stringMatchesRegExp |
verify()->notRegExp |
Verify()->stringDoesNotMatchRegExp |
verify()->notStartsWith |
Verify()->stringNotStartsWith |
Codeception\Verify::$override
was removed, extend from abstractCodeception\Verify\Verify
class instead.