Skip to content

Releases: bovigo/assert

5.1.1 - Not that dependant, please

10 Dec 13:14
3fc2999

Choose a tag to compare

  • Fixed dependency to mikey179/vfsstream, is now a dev dependency again

5.1.0 - A little bit of config on my side

10 Dec 10:53
c1d9f3b

Choose a tag to compare

  • Added reusable config for projects using bovigo/assert available in src/main/resources/phpstan/bovigo-assert.neon

5.0.1 - Call me back

06 Dec 09:36
abf3a5b

Choose a tag to compare

  • Fixed bovigo\assert\CatchedError::message() and bovigo\assert\CatchedException::message() to really accept a callable

5.0.0 - A handful

08 Apr 11:58
6bd9824

Choose a tag to compare

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() and assertNotInternalType() introduced with PHPUnit 7.5
  • Ensured compatibility with PHPUnit 8.0
  • Added new shortcut functions for specific bovigo\assert\predicate\isOfType() and bovigo\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

11 Feb 14:37
e7e2c23

Choose a tag to compare

  • updated dependencies to be compatible with PHPUnit 7.x

3.2.0 - This string fits my format

28 Dec 15:50
5de455d

Choose a tag to compare

  • Implemented #8: add support for assertStringMatchesFormat
    • Added new functions bovigo\assert\predicate\matchesFormat() and bovigo\assert\predicate\doesNotMatchFormat()

3.1.0 - Bittersweet

30 Oct 12:40
9c98171

Choose a tag to compare

  • Fixed #7: bovigo\assert\assert() not executed when zend.assertions not set to 1
    • Added new function bovigo\assert\assertThat(), made bovigo\assert\assert() an alias for this
    • Deprecated bovigo\assert\assert()

3.0.0 - New is always better

20 Sep 16:03
ddd0fb9

Choose a tag to compare

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

20 Sep 16:00
a63e005

Choose a tag to compare

  • updated sebastian/exporter to 2.0 to ensure compatibility with PHPUnit 5.7

2.1.0 - Always expect more

23 Aug 20:39
5fa0307

Choose a tag to compare

  • 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 test trigger_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