Skip to content

Commit

Permalink
README: add expectDeprecation*() to FAQ > Removed functionality witho…
Browse files Browse the repository at this point in the history
…ut PHPUnit native replacement.
  • Loading branch information
hellofromtonya committed Sep 5, 2024
1 parent 44560db commit 92419a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,12 @@ For frequently used, removed PHPUnit functionality, "helpers" may be provided. T
| PHPUnit | Removed | Issue | Remarks |
| ------- | --------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 9.0.0 | `assertArraySubset()` | [#1][issue #1] | The [`dms/phpunit-arraysubset-asserts`](https://packagist.org/packages/dms/phpunit-arraysubset-asserts) package polyfills this functionality.<br/>As of [version 0.3.0](https://github.com/rdohms/phpunit-arraysubset-asserts/releases/tag/v0.3.0) this package can be installed in combination with PHP 5.4 - current and PHPUnit 4.8.36/5.7.21 - current.<br/>Alternatively, tests can be refactored using the patterns outlined in [issue #1]. |
| 9.0.0 | `assertAttribute*()` | [#2][issue #2] | Refactor the tests to not directly test private/protected properties.<br/>As an interim solution, the [`Yoast\PHPUnitPolyfills\Helpers\AssertAttributeHelper`](#yoastphpunitpolyfillshelpersassertattributehelper) trait is available. |
| 9.0.0 | `assertAttribute*()` | [#2][issue #2] | Refactor the tests to not directly test private/protected properties.<br/>As an interim solution, the [`Yoast\PHPUnitPolyfills\Helpers\AssertAttributeHelper`](#yoastphpunitpolyfillshelpersassertattributehelper) trait is available. | |

Check failure on line 673 in README.md

View workflow job for this annotation

GitHub Actions / Lint Markdown

Table column count

README.md:673:488 MD056/table-column-count Table column count [Expected: 4; Actual: 5; Too many cells, extra data will be missing] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md056.md

Check failure on line 673 in README.md

View workflow job for this annotation

GitHub Actions / Lint Markdown

Table column count

README.md:673:488 MD056/table-column-count Table column count [Expected: 4; Actual: 5; Too many cells, extra data will be missing] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md056.md
| 10.0.0 | `expectDeprecation*()` | [#186][issue #186] | A custom polyfills approach is available that uses a [custom extension](https://docs.phpunit.de/en/10.5/extending-phpunit.html#implementing-an-extension) and [the events system](https://docs.phpunit.de/en/10.5/events.html#test). Alternatively, tests can be refactored to skip running the `expectDeprecation*()`s. |

Check failure on line 674 in README.md

View workflow job for this annotation

GitHub Actions / Lint Markdown

Reference links and images should use a label that is defined

README.md:674:38 MD052/reference-links-images Reference links and images should use a label that is defined [Missing link or image reference definition: "issue #186"] [Context: "[#186][issue #186]"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md052.md

Check failure on line 674 in README.md

View workflow job for this annotation

GitHub Actions / Lint Markdown

Reference links and images should use a label that is defined

README.md:674:38 MD052/reference-links-images Reference links and images should use a label that is defined [Missing link or image reference definition: "issue #186"] [Context: "[#186][issue #186]"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md052.md

[issue #1]: https://github.com/Yoast/PHPUnit-Polyfills/issues/1
[issue #2]: https://github.com/Yoast/PHPUnit-Polyfills/issues/2
[issue #3]: https://github.com/Yoast/PHPUnit-Polyfills/issues/185

Check failure on line 678 in README.md

View workflow job for this annotation

GitHub Actions / Lint Markdown

Link and image reference definitions should be needed

README.md:678:1 MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "issue #3"] [Context: "[issue #3]: https://github.com..."] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md053.md

Check failure on line 678 in README.md

View workflow job for this annotation

GitHub Actions / Lint Markdown

Link and image reference definitions should be needed

README.md:678:1 MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "issue #3"] [Context: "[issue #3]: https://github.com..."] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md053.md

### Q: Can this library be used when the tests are being run via a PHPUnit Phar file ?

Expand Down

0 comments on commit 92419a5

Please sign in to comment.