Releases: bovigo/assert
Releases · bovigo/assert
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
2.0.0 - Becoming more strict
BC breaks
- raised minimum required PHP version to 7.0.0
- introduced scalar type hints and strict type checking
- removed
bovigo\assert\predicate\Predicate::asWellAs()
, usebovigo\assert\predicate\Predicate::and()
instead, deprecated since 1.4.0 - removed
bovigo\assert\predicate\Predicate::orElse()
, usebovigo\assert\predicate\Predicate::or()
instead, deprecated since 1.4.0 - removed
bovigo\assert\predicate\Predicate::negate()
, usebovigo\assert\predicate\not()
instead, deprecated since 1.4.0
1.7.1 - Each release is a small improvement
- implemented #2: each() should specify which exact value fails
1.7.0 - I can haz diff?
- added
bovigo\assert\predicate\Equals::hasDiffForLastFailure()
- added
bovigo\assert\predicate\Equals::diffForLastFailure()