Skip to content

Releases: bovigo/assert

2.0.0 - Becoming more strict

10 Jul 10:32

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

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

Choose a tag to compare

  • added bovigo\assert\predicate\Equals::hasDiffForLastFailure()
  • added bovigo\assert\predicate\Equals::diffForLastFailure()

1.6.1 - Exceptional circumstances require exceptional error messages

20 Jun 19:52

Choose a tag to compare

  • implemented #1: improve error message when catched exception does not matched expected exception

1.6.0 - Expect the exceptional

21 Feb 12:35

Choose a tag to compare

  • added bovigo\assert\expect()

1.5.0 - I feel so empty

11 Jan 15:12

Choose a tag to compare

  • added alias bovigo\assert\assertEmptyString()
  • added alias bovigo\assert\assertEmptyArray()

1.4.0 - Call the police, we got a bad method

31 Dec 16:39

Choose a tag to compare

BC breaks

  • deprecated bovigo\assert\predicate\Predicate::asWellAs() in favor of bovigo\assert\predicate\Predicate::and(), will be removed with 2.0.0
  • deprecated bovigo\assert\predicate\Predicate::orElse() in favor of bovigo\assert\predicate\Predicate::or(), will be removed with 2.0.0
  • deprecated bovigo\assert\predicate\Predicate::negate() in favor of bovigo\assert\predicate\not(), will be removed with 2.0.0

Other changes

  • added bovigo\assert\predicate\Predicate::and()
  • added bovigo\assert\predicate\Predicate::or()

1.3.0 - Aliases are key

30 Dec 15:27

Choose a tag to compare

  • 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() and bovigo\assert\predicate\isOfSize() can now work with non-cloneable traversables

1.2.0 - Fail fast, fail early

29 Dec 12:54

Choose a tag to compare

  • added bovigo\assert\fail()

1.1.0 - Predicate all the useful things

28 Dec 19:58

Choose a tag to compare

  • 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