|
Ran
|
Files
33
|
Run time
29s
|
Badge
README BADGES
|
push
github
Modernizer: add scalar + return type declarations (wherever possible) In line with the new minimum of PHPUnit 7.x, the assertions in the PHPUnit Polyfills will now have both parameter as well as return type declarations (wherever possible considering the minimum supported PHP version of PHP 7.1). Additional type declarations will be added in future majors if/when the minimum supported PHP version allows for it. Includes removing polyfilled inline type checks for assertions which were introduced in PHPUnit with declared types, but for which the polyfills couldn't type the parameters prior to this. Includes minor adjustments to exception expectations in the tests to allow for the PHP native `TypeError`s - in contrast to the emulated ones. Notes: * `AssertObjectProperty`: the `string` type for the `$propertyName` parameter for the `assertObject[Not]HasProperty()` has not been applied as it would invalidate the type check (as we can't enforce `strict_types` for tests using the assertion). Refs: * https://github.com/sebastianbergmann/phpunit/commit/852e5405d * https://github.com/sebastianbergmann/phpunit/commit/a7ab2b9b5
361 of 518 relevant lines covered (69.69%)
5.91 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|