You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->expectExceptionMessageRegExp('/^Expected builder to be an instance of DiffOutputBuilderInterface, <null> or a string, got instance of "SplFileInfo"\.$/');
439
+
$this->expectExceptionMessageMatches('/^Expected builder to be an instance of DiffOutputBuilderInterface, <null> or a string, got instance of "SplFileInfo"\.$/');
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote("Line 1 indicates a header, so line 2 must start with \"+++\".\nLine 1: \"--- A\n\"\nLine 2: \"+ 1\n\".", '#')));
79
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote("Line 1 indicates a header, so line 2 must start with \"+++\".\nLine 1: \"--- A\n\"\nLine 2: \"+ 1\n\".", '#')));
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote("Header line does not match expected pattern, got \"+++ file X\n\". Line 2.", '#')));
87
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote("Header line does not match expected pattern, got \"+++ file X\n\". Line 2.", '#')));
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Date of header line does not match expected pattern, got "[invalid date]". Line 1.', '#')));
95
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Date of header line does not match expected pattern, got "[invalid date]". Line 1.', '#')));
96
96
97
97
$this->assertValidUnifiedDiffFormat(
98
98
"--- Original\t[invalid date]
@@ -108,7 +108,7 @@ public function testInvalidStartHeader3(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote("Expected header line to start with \"+++ \", got \"+++INVALID\n\". Line 2.", '#')));
111
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote("Expected header line to start with \"+++ \", got \"+++INVALID\n\". Line 2.", '#')));
112
112
113
113
$this->assertValidUnifiedDiffFormat(
114
114
'--- Original
@@ -124,7 +124,7 @@ public function testInvalidStartHeader4(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote("Hunk header line does not match expected pattern, got \"@@ INVALID -1,1 +1,1 @@\n\". Line 3.", '#')));
158
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote("Hunk header line does not match expected pattern, got \"@@ INVALID -1,1 +1,1 @@\n\". Line 3.", '#')));
159
159
160
160
$this->assertValidUnifiedDiffFormat(
161
161
'--- Original
@@ -170,7 +170,7 @@ public function testHunkInvalidFormat(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Unexpected "\ No newline at end of file", it must be preceded by \'+\' or \'-\' line. Line 1.', '#')));
293
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Unexpected "\ No newline at end of file", it must be preceded by \'+\' or \'-\' line. Line 1.', '#')));
294
294
295
295
$this->assertValidUnifiedDiffFormat(
296
296
'\ No newline at end of file
@@ -301,7 +301,7 @@ public function testMisplacedComment(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Unexpected "\\ No newline at end of file", "\\" was already closed. Line 8.', '#')));
304
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Unexpected "\\ No newline at end of file", "\\" was already closed. Line 8.', '#')));
305
305
306
306
$this->assertValidUnifiedDiffFormat(
307
307
'--- Original
@@ -319,7 +319,7 @@ public function testUnexpectedDuplicateNoNewLineEOF(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Not expected from (\'-\'), already closed by "\ No newline at end of file". Line 6.', '#')));
322
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Not expected from (\'-\'), already closed by "\ No newline at end of file". Line 6.', '#')));
323
323
324
324
$this->assertValidUnifiedDiffFormat(
325
325
'--- Original
@@ -336,7 +336,7 @@ public function testFromAfterClose(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Not expected same (\'\'), \'-\' already closed by "\ No newline at end of file". Line 6.', '#')));
339
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Not expected same (\'\'), \'-\' already closed by "\ No newline at end of file". Line 6.', '#')));
340
340
341
341
$this->assertValidUnifiedDiffFormat(
342
342
'--- Original
@@ -353,7 +353,7 @@ public function testSameAfterFromClose(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Not expected to (\'+\'), already closed by "\ No newline at end of file". Line 6.', '#')));
356
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Not expected to (\'+\'), already closed by "\ No newline at end of file". Line 6.', '#')));
357
357
358
358
$this->assertValidUnifiedDiffFormat(
359
359
'--- Original
@@ -370,7 +370,7 @@ public function testToAfterClose(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Not expected same (\'\'), \'+\' already closed by "\ No newline at end of file". Line 6.', '#')));
373
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Not expected same (\'\'), \'+\' already closed by "\ No newline at end of file". Line 6.', '#')));
374
374
375
375
$this->assertValidUnifiedDiffFormat(
376
376
'--- Original
@@ -387,7 +387,7 @@ public function testSameAfterToClose(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Unexpected EOF, number of lines in hunk "from" (\'-\')) mismatched. Line 7.', '#')));
390
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Unexpected EOF, number of lines in hunk "from" (\'-\')) mismatched. Line 7.', '#')));
391
391
392
392
$this->assertValidUnifiedDiffFormat(
393
393
'--- Original
@@ -403,7 +403,7 @@ public function testUnexpectedEOFFromMissingLines(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Unexpected EOF, number of lines in hunk "to" (\'+\')) mismatched. Line 7.', '#')));
406
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Unexpected EOF, number of lines in hunk "to" (\'+\')) mismatched. Line 7.', '#')));
407
407
408
408
$this->assertValidUnifiedDiffFormat(
409
409
'--- Original
@@ -419,7 +419,7 @@ public function testUnexpectedEOFToMissingLines(): void
$this->expectExceptionMessageRegExp(\sprintf('#^%s$#', \preg_quote('Unexpected EOF, number of lines in hunk "from" (\'-\')) and "to" (\'+\') mismatched. Line 7.', '#')));
422
+
$this->expectExceptionMessageMatches(\sprintf('#^%s$#', \preg_quote('Unexpected EOF, number of lines in hunk "from" (\'-\')) and "to" (\'+\') mismatched. Line 7.', '#')));
0 commit comments