File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ protected function processActualErrors(array $actualErrors): array
54
54
55
55
foreach ($ actualErrors as $ error ) {
56
56
$ usedLine = $ error ->getLine () ?? -1 ;
57
- $ key = $ usedLine . '- ' . uniqid ();
57
+ $ key = sprintf ( ' %04d ' , $ usedLine) . '- ' . uniqid ();
58
58
$ resultToAssert [$ key ] = $ this ->formatErrorForAssert ($ error ->getMessage (), $ usedLine );
59
59
60
60
self ::assertNotNull ($ error ->getIdentifier (), "Missing error identifier for error: {$ error ->getMessage ()}" );
@@ -88,7 +88,7 @@ private function parseExpectedErrors(string $file): array
88
88
89
89
foreach ($ matches [1 ] as $ error ) {
90
90
$ actualLine = $ line + 1 ;
91
- $ key = $ actualLine . '- ' . uniqid ();
91
+ $ key = sprintf ( ' %04d ' , $ actualLine) . '- ' . uniqid ();
92
92
$ expectedErrors [$ key ] = $ this ->formatErrorForAssert (trim ($ error ), $ actualLine );
93
93
}
94
94
}
You can’t perform that action at this time.
0 commit comments