Releases: bovigo/assert
Releases · bovigo/assert
5.1.1 - Not that dependant, please
- Fixed dependency to mikey179/vfsstream, is now a dev dependency again
5.1.0 - A little bit of config on my side
- Added reusable config for projects using bovigo/assert available in
src/main/resources/phpstan/bovigo-assert.neon
5.0.1 - Call me back
- Fixed
bovigo\assert\CatchedError::message()andbovigo\assert\CatchedException::message()to really accept a callable
5.0.0 - A handful
BC breaks
- Removed deprecated
bovigo\assert\assert() - Raised minimum required PHP version to 7.2.0
Other changes
bovigo\assert\predicate\isOfType()can now check for iterable types- Added support in compatibility layer for specialized alternatives to
assertInternalType()andassertNotInternalType()introduced with PHPUnit 7.5 - Ensured compatibility with PHPUnit 8.0
- Added new shortcut functions for specific
bovigo\assert\predicate\isOfType()andbovigo\assert\predicate\isNotOfType()uses:bovigo\assert\predicate\isArray()bovigo\assert\predicate\isNotAnArray()bovigo\assert\predicate\isBool()bovigo\assert\predicate\isNotBool()bovigo\assert\predicate\isFloat()bovigo\assert\predicate\isNotFloat()bovigo\assert\predicate\isInt()bovigo\assert\predicate\isNotInt()bovigo\assert\predicate\isNumeric()bovigo\assert\predicate\isNotNumeric()bovigo\assert\predicate\isObject()bovigo\assert\predicate\isNotAnObject()bovigo\assert\predicate\isResource()bovigo\assert\predicate\isNotAResource()bovigo\assert\predicate\isString()bovigo\assert\predicate\isNotAString()bovigo\assert\predicate\isScalar()bovigo\assert\predicate\isNotScalar()bovigo\assert\predicate\isCallable()bovigo\assert\predicate\isNotCallable()bovigo\assert\predicate\isIterable()bovigo\assert\predicate\isNotIterable()
4.0.0 - It's always coming 7
- updated dependencies to be compatible with PHPUnit 7.x
3.2.0 - This string fits my format
- Implemented #8: add support for assertStringMatchesFormat
- Added new functions
bovigo\assert\predicate\matchesFormat()andbovigo\assert\predicate\doesNotMatchFormat()
- Added new functions
3.1.0 - Bittersweet
- Fixed #7:
bovigo\assert\assert()not executed when zend.assertions not set to 1- Added new function
bovigo\assert\assertThat(), madebovigo\assert\assert()an alias for this - Deprecated
bovigo\assert\assert()
- Added new function
3.0.0 - New is always better
BC breaks
raised minimum required PHP version to 7.1.0
updated dependencies to be compatible with PHPUnit 6.x
2.2.0 - Export forward compatibility
- updated sebastian/exporter to 2.0 to ensure compatibility with PHPUnit 5.7
2.1.0 - Always expect more
- implemented #3 add support for testing output by adding
bovigo\assert\outputOf() - implemented #4
bovigo\assert\expect()should work with\Error - implemented #5
bovigo\assert\expect()should provide possibility to testtrigger_error() - allowed to use
bovigo\assert\expect()->throws()with an instance of\Throwable, will assert thrown exception is identical instead of asserting correct type only