Ran
|
Files
35
|
Run time
2s
|
Badge
Embed ▾
README BADGES
|
push
github
Drop support for PHP < 7.0 [4] In the original implementation of the `assertObjectEquals()` polyfill, the polyfill could not mirror the PHPUnit native implementation completely as that required support for return types, which was only added in PHP 7.0, while the polyfill was introduced in PHPUnit Polyfills 1.0, which still supported PHP 5.5. So instead of checking whether the "comparator" method had a return type declared and verifying that this return type complied with the requirements set by PHPUnit, the polyfill originally checked whether the _returned value_ complied with the required type. Now support for PHP < 7.0 is being dropped, the `assertObjectEquals()` polyfill can be updated to fix this implementation difference. Includes unit tests for the changed functionality/new logic paths throwing exceptions. Includes updated documentation in the README. Refs: * 38 * sebastianbergmann/phpunit 4707 * sebastianbergmann/phpunit 4467 * sebastianbergmann/phpunit 4707 * https://github.com/sebastianbergmann/phpunit/commit/1dba8c3a4 * https://github.com/sebastianbergmann/phpunit/commit/6099c5eef
355 of 631 relevant lines covered (56.26%)
6.91 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|