-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove expectExceptionMessageRegExp() #3957
Labels
type/backward-compatibility
Something will be/is intentionally broken
Milestone
Comments
sebastianbergmann
added
the
type/backward-compatibility
Something will be/is intentionally broken
label
Nov 25, 2019
jrfnl
added a commit
to jrfnl/phpunit-documentation-english
that referenced
this issue
Feb 20, 2020
…ith `expectExceptionMessageMatches()` Based on the changelog of PHPUnit 9.0, the `expectExceptionMessageRegExp()` method has been removed and `expectExceptionMessageMatches()` should be used instead. Refs: * https://github.com/sebastianbergmann/phpunit/blob/9.0.1/ChangeLog-9.0.md * sebastianbergmann/phpunit#3957
sebastianbergmann
pushed a commit
to sebastianbergmann/phpunit-documentation-english
that referenced
this issue
Feb 20, 2020
…ith `expectExceptionMessageMatches()` Based on the changelog of PHPUnit 9.0, the `expectExceptionMessageRegExp()` method has been removed and `expectExceptionMessageMatches()` should be used instead. Refs: * https://github.com/sebastianbergmann/phpunit/blob/9.0.1/ChangeLog-9.0.md * sebastianbergmann/phpunit#3957
williamdes
added a commit
to williamdes/mariadb-mysql-kbs
that referenced
this issue
Apr 1, 2020
…pectExceptionMessageRegExp Ref: sebastianbergmann/phpunit#3957
stronk7
added a commit
to stronk7/moodle
that referenced
this issue
Sep 20, 2020
While this is not strictly required, because removal will happen in PHPUnit 9.0, we are already getting rid of all uses in core. From release notes:https://phpunit.de/announcements/phpunit-8.html The annotations `@expectedException`, `@expectedExceptionCode`, `@expectedExceptionMessage`, and `@expectedExceptionMessageRegExp` are now deprecated. Using these annotations will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these annotations will be removed. Also, all uses of expectExceptionMessageRegExp() has been moved to expectExceptionMessageMatches(). See sebastianbergmann/phpunit#3957 TODO: Various weirdness found while doing the changes with these tests: - vendor/bin/phpunit lib/tests/exporter_test.php (created MDL-69700) - vendor/bin/phpunit competency/tests/external_test.php (same issue than prev one) - vendor/bin/phpunit question/engine/tests/questionengine_test.php (created MDL-69624) - vendor/bin/phpunit lib/tests/event_test.php (created MDL-69688)
stronk7
added a commit
to stronk7/moodle
that referenced
this issue
Oct 21, 2020
While this is not strictly required, because removal will happen in PHPUnit 9.0, we are already getting rid of all uses in core. From release notes:https://phpunit.de/announcements/phpunit-8.html The annotations `@expectedException`, `@expectedExceptionCode`, `@expectedExceptionMessage`, and `@expectedExceptionMessageRegExp` are now deprecated. Using these annotations will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these annotations will be removed. Also, all uses of expectExceptionMessageRegExp() has been moved to expectExceptionMessageMatches(). See sebastianbergmann/phpunit#3957 TODO: Various weirdness found while doing the changes with these tests: - vendor/bin/phpunit lib/tests/exporter_test.php (created MDL-69700) - vendor/bin/phpunit competency/tests/external_test.php (same issue than prev one) - vendor/bin/phpunit question/engine/tests/questionengine_test.php (created MDL-69624) - vendor/bin/phpunit lib/tests/event_test.php (created MDL-69688)
stronk7
added a commit
to stronk7/moodle
that referenced
this issue
Oct 21, 2020
While this is not strictly required, because removal will happen in PHPUnit 9.0, we are already getting rid of all uses in core. From release notes:https://phpunit.de/announcements/phpunit-8.html The annotations `@expectedException`, `@expectedExceptionCode`, `@expectedExceptionMessage`, and `@expectedExceptionMessageRegExp` are now deprecated. Using these annotations will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these annotations will be removed. Also, all uses of expectExceptionMessageRegExp() has been moved to expectExceptionMessageMatches(). See sebastianbergmann/phpunit#3957 TODO: Various weirdness found while doing the changes with these tests: - vendor/bin/phpunit lib/tests/exporter_test.php (created MDL-69700) - vendor/bin/phpunit competency/tests/external_test.php (same issue than prev one) - vendor/bin/phpunit question/engine/tests/questionengine_test.php (created MDL-69624) - vendor/bin/phpunit lib/tests/event_test.php (created MDL-69688)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
expectExceptionMessageMatches()
should be used instead.The text was updated successfully, but these errors were encountered: