[PHPUnit 9] Rename assertRegExp/assertNotRegExp to assertMatchesRegularExpression/assertDoesNotMatchRegularExpression on phpunit 90 set#666
Conversation
…arExpression/assertDoesNotMatchRegularExpression
|
Fixed 🎉 /cc @mvhirsch this should work with use phpunit 9 set so the |
|
@TomasVotruba ready 👍 |
|
👍 |
@samsonasik I'm using PHPUnit v10 that's why it failed in first place (rectorphp/rector#9714) 😊 Thank you! |
|
@samsonasik but I wonder how this is going to fix I'm not using LevelSet updates, I'm just using this in my ->withPreparedSets(deadCode: true, codeQuality: true, typeDeclarations: true, privatization: true, earlyReturn: true, phpunitCodeQuality: true, doctrineCodeQuality: true, symfonyCodeQuality: true) |
|
You should can use The target method only exists in phpunit 9+ so use the composer based or use the setlist to update the name. |
The target method is So if I understand you correctly, by using I'm not familiar with internals of Rector. Is it common to use the old/deprecated method names in Rectors and rector them with level-sets afterwards on second iteration? |
|
I think the |
No, sorry. |
ok, on phpunit v8,
assertMatchesRegularExpressionandassertDoesNotMatchRegularExpressiondoesn't exists yet, so needs to apply on phpunit 9 set.Fixes rectorphp/rector#9714