Skip to content

Releases: bovigo/assert

5.0.0 - A handful

08 Apr 11:58
v5.0.0
6bd9824
Compare
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
v4.0.0
e7e2c23
Compare
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
v3.2.0
5de455d
Compare
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
v3.1.0
9c98171
Compare
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
v3.0.0
ddd0fb9
Compare
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
v2.2.0
a63e005
Compare
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
Compare
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

2.0.0 - Becoming more strict

10 Jul 10:32
Compare
Choose a tag to compare

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(), use bovigo\assert\predicate\Predicate::and() instead, deprecated since 1.4.0
  • removed bovigo\assert\predicate\Predicate::orElse(), use bovigo\assert\predicate\Predicate::or() instead, deprecated since 1.4.0
  • removed bovigo\assert\predicate\Predicate::negate(), use bovigo\assert\predicate\not() instead, deprecated since 1.4.0

1.7.1 - Each release is a small improvement

28 Jun 14:57
Compare
Choose a tag to compare
  • implemented #2: each() should specify which exact value fails

1.7.0 - I can haz diff?

28 Jun 14:57
Compare
Choose a tag to compare
  • added bovigo\assert\predicate\Equals::hasDiffForLastFailure()
  • added bovigo\assert\predicate\Equals::diffForLastFailure()