Skip to content

5.0.0 - A handful

Compare
Choose a tag to compare
@mikey179 mikey179 released this 08 Apr 11:58
v5.0.0
6bd9824

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()