Skip to content

Releases: xp-framework/test

2.1.0: FromDirectory source consistency

28 Mar 13:53
Compare
Choose a tag to compare
  • Made FromDirectory consistent with other source implementations in
    regard to how it filters the types returned
    (@thekid)

2.0.0: XP 12 compatibility

23 Mar 17:11
Compare
Choose a tag to compare

This second major release upgrades this library to support only the latest PHP 7 version, PHP 7.4, in alignment with XP 12. See xp-framework/rfc#343

  • Changed test.verify.Runtime to use PHP_OS_FAMILY constant instead
    of PHP_OS. The former has been available since PHP 7.2
    (@thekid)
  • Made this library compatible with XP 12:
    • Dropped support for PHP < 7.4
    • Adopted nullable type syntax, array unpacking
      (@thekid)

1.5.2: Method call fix

25 Jun 16:35
Compare
Choose a tag to compare
  • Fixed Call to undefined method Returning::name() - @thekid

1.5.1: Error cleanup fix

18 May 12:22
Compare
Choose a tag to compare
  • Fixed support for cleaning up errors with xp::gc() inside tests
    (@thekid)

1.5.0: Assert::matches()

18 May 11:59
Compare
Choose a tag to compare
  • Merged PR #22: Make warnings raised during test execution fail these
    tests, adding back a previously unported feature.
    (@thekid)
  • Merged PR #23: Implement Assert::matches(), which checks the given
    string value matches a regular expression.
    (@thekid)

1.4.0: Reporting

23 Apr 10:01
Compare
Choose a tag to compare

1.3.1: Graceful setup error handling

15 Apr 16:14
Compare
Choose a tag to compare
  • Merged PR #19: Catch exceptions from test setup and make tests fail,
    fixing issue #16
    (@thekid)

1.3.0: Skip tests without reason

15 Apr 09:35
Compare
Choose a tag to compare
  • Allowed omitting the reason in Ignore annotations. See issue #16
    (@thekid)
  • Fixed issue #17: Argument 2 ($cause) must be of type lang\Throwable,
    null given
    (@thekid)

1.2.0: Thrown exception assertions

17 Feb 12:19
Compare
Choose a tag to compare
  • Merged PR #15: Add assertion helpers for thrown exceptions - @thekid

1.1.0: Performance improvements

11 Feb 12:47
Compare
Choose a tag to compare
  • Merged PR #14: Declare Test, After and Before annotations in order
    to prevent repeated class loading queries, increasing performance
    (@thekid)
  • Added type-hints to Expect annotation so that incorrect usage surfaces
    early along instead of causing confusing errors somewhere downstream
    (@thekid)