- Raised minimum required PHP version to 8.3.0
- Deprecated
bovigo\assert\CatchedError
, introducedbovigo\assert\TriggeredError
instead - Deprecated
bovigo\assert\CatchedException
, introducedbovigo\assert\CaughtThrowable
instead - Fixed implicitly nullable type declarations
- Prevented deprecation notice about used const E_STRICT
- Fixed return type hint for
bovigo\assert\predicate\isNotEqualTo()
to properly reflect that the returned instance is both of typebovigo\assert\predicate\Predicate
andbovigo\assert\predicate\Delta
- Raised minimum required PHP version to 8.2.0
- Upgraded PHPUnit to 10.5
- Due to changes (adding the malicious final keyword) in PHPUnit 10 it is not possible to provide a PHPUnit compatibility layer any more.
- Changed return type of
bovigo\assert\fail()
to never, accordingly removedsrc/main/resources/phpstan/bovigo-assert.neon
as it is not required any more
- Fixed bug with incorrectly initialized delta in
bovigo\assert\predicate\equals()
- Raised minimum required PHP version to 8.0.0
- Removed deprecated parameter
$delta
frombovigo\assert\predicate\equals()
andbovigo\assert\predicate\isNotEqualTo()
, use new methodwithDelta()
on returned instance
- Added support for
containsSubset
(@lyrixx)
- Ensured compatibility with PHP 8 (@jaapio)
- Ensured compatibility with PHPUnit 9.2 and later (@jaapio, @mikey179)
- Raised minimum required PHP version to 7.3.0
- Upgraded PHPUnit compatibility layer to PHPUnit 9.0
- Deprecated optional parameter
$delta
inbovigo\assert\predicate\equals()
andbovigo\assert\predicate\isNotEqualTo()
, use new methodwithDelta()
on returned instance
- Fixed dependency to mikey179/vfsstream, is now a dev dependency again
- Added reusable config for projects using bovigo/assert available in
src/main/resources/phpstan/bovigo-assert.neon
- Fixed
bovigo\assert\CatchedError::message()
andbovigo\assert\CatchedException::message()
to really accept a callable
- Removed deprecated
bovigo\assert\assert()
- Raised minimum required PHP version to 7.2.0
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()
- updated dependencies to be compatible with PHPUnit 7.x
- Implemented #8: add support for assertStringMatchesFormat
- Added new functions
bovigo\assert\predicate\matchesFormat()
andbovigo\assert\predicate\doesNotMatchFormat()
- Added new functions
- 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
- raised minimum required PHP version to 7.1.0
- updated dependencies to be compatible with PHPUnit 6.x
- updated sebastian/exporter to 2.0 to ensure compatibility with PHPUnit 5.7
- 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
- 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
- implemented #2: each() should specify which exact value fails
- added
bovigo\assert\predicate\Equals::hasDiffForLastFailure()
- added
bovigo\assert\predicate\Equals::diffForLastFailure()
- implemented #1: improve error message when catched exception does not matched expected exception
- added
bovigo\assert\expect()
- added alias
bovigo\assert\assertEmptyString()
- added alias
bovigo\assert\assertEmptyArray()
- deprecated
bovigo\assert\predicate\Predicate::asWellAs()
in favor ofbovigo\assert\predicate\Predicate::and()
, will be removed with 2.0.0 - deprecated
bovigo\assert\predicate\Predicate::orElse()
in favor ofbovigo\assert\predicate\Predicate::or()
, will be removed with 2.0.0 - deprecated
bovigo\assert\predicate\Predicate::negate()
in favor ofbovigo\assert\predicate\not()
, will be removed with 2.0.0
- added
bovigo\assert\predicate\Predicate::and()
- added
bovigo\assert\predicate\Predicate::or()
- added
bovigo\assert\predicate\eachKey()
- added alias
bovigo\assert\assertTrue()
- added alias
bovigo\assert\assertFalse()
- added alias
bovigo\assert\assertNull()
- added alias
bovigo\assert\assertNotNull()
- added alias
bovigo\assert\assertEmpty()
- added alias
bovigo\assert\assertNotEmpty()
- both
bovigo\assert\predicate\each()
andbovigo\assert\predicate\isOfSize()
can now work with non-cloneable traversables
- added
bovigo\assert\fail()
- added
bovigo\assert\predicate\each()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertContainsOnly()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertContainsOnlyInstancesOf()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertNotContainsOnly()
- added
bovigo\assert\predicate\startsWith()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertStringStartsWith()
- added
bovigo\assert\predicate\doesNotStartWith()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertStringStartsNotWith()
- added
bovigo\assert\predicate\endsWith()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertStringEndsWith()
- added
bovigo\assert\predicate\doesNotEndWith()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertStringEndsNotWith()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertNan()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertFinite()
- added
bovigo\assert\phpunit\PHPUnit_Framework_TestCase::assertInfinite()
bovigo\assert\predicate\not()
now also accepts callables
- Initial release.