FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: add replacements for deprecated assertContainsOnly() and assertNotContainsOnly() by W0rma · Pull Request #19 · Codeception/lib-asserts · GitHub

feat: add replacements for deprecated assertContainsOnly() and assertNotContainsOnly() - #19

Merged
W0rma merged 1 commit into
Codeception:masterfrom
W0rma:assert-contains-only
Dec 22, 2025
Merged

feat: add replacements for deprecated assertContainsOnly() and assertNotContainsOnly()#19
W0rma merged 1 commit into
Codeception:masterfrom
W0rma:assert-contains-only

Conversation

W0rma commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

assertContainsOnly() and assertNotContainsOnly() are deprecated since PHPUnit 11.5: https://github.com/sebastianbergmann/phpunit/blob/11.5/DEPRECATIONS.md#soft-deprecations

This PR adds the suggested replacements and deprecates both methods.

Related to Codeception/Codeception#6871

W0rma force-pushed the assert-contains-only branch 2 times, most recently from 0d891cd to 1caa11f Compare December 20, 2025 11:08
W0rma marked this pull request as ready for review December 22, 2025 07:29
…NotContainsOnly()

DEPRECATED: InheritAsserts::assertContainsOnly() and InheritAsserts::assertNotContainsOnly()

use assertContainsOnlyArray(), assertContainsOnlyBool(), assertContainsOnlyCallable(), assertContainsOnlyFloat(), assertContainsOnlyInt(), assertContainsOnlyIterable(), assertContainsOnlyNumeric(), assertContainsOnlyObject(), assertContainsOnlyResource(), assertContainsOnlyClosedResource(), assertContainsOnlyScalar(), assertContainsOnlyString(), assertContainsNotOnlyArray(), assertContainsNotOnlyBool(), assertContainsNotOnlyCallable(), assertContainsNotOnlyFloat(), assertContainsNotOnlyInt(), assertContainsNotOnlyIterable(), assertContainsNotOnlyNumeric(), assertContainsNotOnlyObject(), assertContainsNotOnlyResource(), assertContainsNotOnlyClosedResource(), assertContainsNotOnlyScalar(), or assertContainsNotOnlyString() instead
W0rma force-pushed the assert-contains-only branch from 1caa11f to edff82f Compare December 22, 2025 08:24
W0rma merged commit 8e161f3 into Codeception:master Dec 22, 2025
4 checks passed
W0rma deleted the assert-contains-only branch December 22, 2025 08:25

Copy link
Copy Markdown

🎉 This PR is included in version 3.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL