Yoast / PHPUnit-Polyfills

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests
BSD 3-Clause "New" or "Revised" License
173 stars 13 forks source link

PHPUnit 11 | AssertArrayWithListKeys trait: polyfill the Assert::assertArrayIsEqualToArrayOnlyConsideringListOfKeys() et al methods #198

Closed jrfnl closed 2 months ago

jrfnl commented 2 months ago

PHPUnit 11.0.0 introduces the new Assert::assertArrayIsEqualToArrayOnlyConsideringListOfKeys(), Assert::assertArrayIsEqualToArrayIgnoringListOfKeys(), Assert::assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys() and Assert::assertArrayIsIdenticalToArrayIgnoringListOfKeys() methods.

This commit:

Includes:

Refs:

coveralls commented 2 months ago

Coverage Status

coverage: 97.276% (+0.1%) from 97.152% when pulling 318912302c43c54d6bc64f9f44b94043bc90a5c1 on feature/3.x/new-assertarraywithlistkeys-polyfill-trait into 5aa05612c0a15e0b20d41ceff47c2a48c52f4801 on 3.x.