Skip to content

Commit d896caa

Browse files
committed
Merge branch '2.17'
2 parents d655f53 + 7bc3a25 commit d896caa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Fixer/Phpdoc/GeneralPhpdocTagRenameFixerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function provideFixCases()
204204
public function testConfigureWithInvalidOption()
205205
{
206206
$this->expectException(InvalidFixerConfigurationException::class);
207-
$this->expectExceptionMessageRegExp('/^\[general_phpdoc_tag_rename\] Invalid configuration: The option "replacements" with value true is expected to be of type "array", but is of type ".*ool.*"\.$/');
207+
$this->expectExceptionMessageMatches('/^\[general_phpdoc_tag_rename\] Invalid configuration: The option "replacements" with value true is expected to be of type "array", but is of type ".*ool.*"\.$/');
208208

209209
$this->fixer->configure([
210210
'replacements' => true,
@@ -214,7 +214,7 @@ public function testConfigureWithInvalidOption()
214214
public function testConfigureWithUnknownOption()
215215
{
216216
$this->expectException(InvalidFixerConfigurationException::class);
217-
$this->expectExceptionMessageRegExp('/^\[general_phpdoc_tag_rename\] Invalid configuration: The option "foo" does not exist\. (Known|Defined) options are: "case_sensitive", "fix_annotation", "fix_inline", "replacements"\.$/');
217+
$this->expectExceptionMessageMatches('/^\[general_phpdoc_tag_rename\] Invalid configuration: The option "foo" does not exist\. (Known|Defined) options are: "case_sensitive", "fix_annotation", "fix_inline", "replacements"\.$/');
218218

219219
$this->fixer->configure([
220220
'foo' => true,
@@ -230,7 +230,7 @@ public function testConfigureWithUnknownOption()
230230
public function testConfigureWithInvalidReplacements(array $replacements, $caseSensitive, $expectedMessage)
231231
{
232232
$this->expectException(InvalidFixerConfigurationException::class);
233-
$this->expectExceptionMessageRegExp(sprintf(
233+
$this->expectExceptionMessageMatches(sprintf(
234234
'/^\[general_phpdoc_tag_rename\] Invalid configuration: %s$/',
235235
preg_quote($expectedMessage, '/')
236236
));

tests/Fixer/Phpdoc/PhpdocTagTypeFixerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public function provideFixCases()
351351
public function testConfigureWithInvalidTagType()
352352
{
353353
$this->expectException(InvalidFixerConfigurationException::class);
354-
$this->expectExceptionMessageRegExp('#^\[phpdoc_tag_type\] Invalid configuration: Unknown tag type "foo"\.#');
354+
$this->expectExceptionMessageMatches('#^\[phpdoc_tag_type\] Invalid configuration: Unknown tag type "foo"\.#');
355355

356356
$this->fixer->configure([
357357
'tags' => ['inheritDoc' => 'foo'],

0 commit comments

Comments
 (0)