Version 1.0.0 - 2021-06-21

Added

  • Yoast\PHPUnitPolyfills\Polyfills\AssertClosedResource trait to polyfill the Assert::assertIsClosedResource() and Assert::assertIsNotClosedResource() methods as introduced in PHPUnit 9.3.0. PR [#27].
  • Yoast\PHPUnitPolyfills\Polyfills\AssertObjectEquals trait to polyfill the Assert::assertObjectEquals() method as introduced in PHPUnit 9.4.0. PR [#38]. The behaviour of the polyfill closely matches the PHPUnit native implementation, but is not 100% the same. Most notably, the polyfill will check the type of the returned value from the comparator method instead of the enforcing a return type declaration of the comparator method.
  • Yoast\PHPUnitPolyfills\Polyfills\EqualToSpecializations trait to polyfill the Assert::equalToCanonicalizing(), Assert::equalToIgnoringCase() and Assert::equalToWithDelta() methods as introduced in PHPUnit 9.0.0. PR [#28], props [Marc Siegrist].
  • Polyfills for the PHP native Error and TypeError classes as introduced in PHP 7.0. PR [#36].
  • README: FAQ section covering functionality removed from PHPUnit and usage with a Phar.

Changed

  • The minimum supported PHP version has been lowered to PHP 5.4 (was 5.5). PR [#19].
  • XTestCase: the visibility of the setUpFixtures() and the tearDownFixtures() methods has been changed to protected (was public). Issue [#10], PR [#20], props [Mark Baker] for reporting.
  • README: re-ordered the sections and various other improvements.
  • Initial preparation for PHPUnit 10.0 compatibility.
  • General housekeeping.

Fixed

  • Issue [#17] via PR [#18] - AssertStringContainString: PHPUnit < 6.4.2 would throw a "mb_strpos(): empty delimiter" PHP warning when the $needle passed was an empty string. Props [Gary Jones].

How to install

sudo dnf upgrade --refresh --advisory=FEDORA-2021-7d2049640b

This update has been submitted for testing by remi.

a year ago

This update's test gating status has been changed to 'ignored'.

a year ago

This update's test gating status has been changed to 'waiting'.

a year ago

This update's test gating status has been changed to 'ignored'.

a year ago

This update has been pushed to testing.

a year ago

This update has been submitted for stable by bodhi.

a year ago

This update has been pushed to stable.

a year ago

Please login to add feedback.

Metadata
Type
enhancement
Karma
0
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
7 days
Dates
submitted
a year ago
in testing
a year ago
in stable
a year ago

Automated Test Results