Problem/Motivation
Support for using expectException() with PHPUnit\\Framework\\Error\\Error is deprecated and will be removed in PHPUnit 10. Use expectError() instead.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | 3217716-19.patch | 4.67 KB | sudiptadas19 |
Comments
Comment #2
mondrakeComment #3
longwaveComment #4
sudiptadas19 commentedAdded patch. Please review it.
Comment #5
vikashsoni commented@sudiptadas19 --- this patch giving error while trying to apply
Checking patch core/tests/Drupal/Tests/Core/Database/ConditionTest.php...
Checking patch core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php...
Checking patch core/tests/Drupal/Tests/Core/Render/ElementTest.php...
Checking patch core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php...
error: while searching for:
'assertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.',
'assertNotRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertDoesNotMatchRegularExpression() instead.',
'Support for using expectException() with PHPUnit\\Framework\\Error\\Warning is deprecated and will be removed in PHPUnit 10. Use expectWarning() instead.',
'Support for using expectException() with PHPUnit\\Framework\\Error\\Error is deprecated and will be removed in PHPUnit 10. Use expectError() instead.',
'assertDirectoryNotIsWritable() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertDirectoryIsNotWritable() instead.',
'assertFileNotIsWritable() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertFileIsNotWritable() instead.',
'The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked.',
error: patch failed: core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php:129
error: core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php: patch does not apply
Comment #6
mondrakethis should be converted to
expectErrorMessage()Comment #7
sudiptadas19 commented@mondrake I have did the changes as per the issue summary, for your suggestive changes the issue summary needs to be updated.
Comment #8
sudiptadas19 commentedAdded a new tag for issue summary update.
Comment #9
meenakshi_j commented#4 patch is working fine.
Fixed the custom commands.
Comment #10
meenakshi_j commentedComment #11
sudiptadas19 commentedAdded mentioned changes, also provide an interdiff file for better understanding changes.
Comment #12
mondrakeRTBC. The PHP 7.3 test is green, indicating tests run OK on PHPUnit8. Deprecation silencer removed and all conversions done.
Comment #13
catchNeeds a re-roll.
Comment #14
hmendes commentedRe-rolling.
Changing it back to needs review as I didn't test it, just re-rolled.
Comment #15
mondrakeComment #16
catchAlready needs another re-roll sorry. On the plus side we're running out of this batch of conflicting patches.
Comment #17
guilhermevp commentedRe-rolled patch!
Comment #18
quietone commentedComment #19
sudiptadas19 commentedRe-rolled patch!
Comment #20
mondrakeComment #23
catchCommitted/pushed to 9.3.x and also to 9.2.x without the deprecation suppression removal.