codeception/verify
Tiny BDD-style assertion wrapper for PHPUnit/Codeception. Use verify() and Verify::Array/Callable for readable, chainable expectations like equals, contains, greater/less, true/false/null, empty/notEmpty, throws/doesNotThrow—closer to natural language.
hasAttributehasStaticAttributenotHasAttributenotHasStaticAttributeFull Changelog: https://github.com/Codeception/Verify/compare/2.1.1...2.2.0
expect function now works with expectations instead of verifiers.Pre-release of the new version of Verify.
Support for full PHPUnit API, that means ~42 new verifiers!
(containsEquals, notContainsEquals, notSameSize, sameSize, directoryDoesNotExist, directoryExists, directoryIsNotReadable, directoryIsNotWritable, directoryIsReadable, directoryIsWritable, fileEqualsCanonicalizing, fileEqualsIgnoringCase, fileIsNotReadable, fileIsNotWritable, fileIsReadable, fileIsWritable, fileNotEqualsCanonicalizing, fileNotEqualsIgnoringCase, jsonFileNotEqualsJsonFile, jsonStringNotEqualsJsonFile, finite, infinite, isClosedResource, isIterable, isNotClosedResource, isNotIterable, nan, notFalse, notTrue, that, json, jsonStringNotEqualsJsonString, notRegExp, stringEqualsFileCanonicalizing, stringEqualsFileIgnoringCase, stringNotEqualsFileCanonicalizing, stringNotEqualsFileIgnoringCase, isNotReadable, isNotWritable, xmlFileNotEqualsXmlFile, xmlStringNotEqualsXmlFile, xmlStringNotEqualsXmlString).
Used strict_types and namespaces.
Created exception InvalidVerifyException.php in case verify is used with some invalid data.
Added docs for all verifiers.
Added data validations with php issers functions and instanceof.
BC: equalXMLStructure and its corresponding test were removed.
BC: hasntKey verifier renamed to hasNotKey for clarity.
BC: Removed support for PHP 7.0 and its corresponding versions of PHPUnit and phpunit-wrapper.
throws and doesNotThrow methods (@biserantonov)Backported all new assertions for PHPUnit 5 and PHP 5.6
Codeception\Verify::$overrideSupport for PHPUnit 6. See #31 . by @Shockwave2k
Now you can assert floats with additional $delta param, see #29
#21 #23
How can I help you explore Laravel packages today?