File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -301,6 +301,7 @@ public static function dumpException(\Throwable $e): string
301301 return $ s ;
302302 }
303303
304+
304305 /**
305306 * @param AssertException $assertException
306307 * @param string $testFile
@@ -327,7 +328,7 @@ public static function storeAssertDiff(AssertException $assertException, $testFi
327328 for ($ i = 0 ; $ i < strlen ($ actual ) && isset ($ expected [$ i ]) && $ actual [$ i ] === $ expected [$ i ]; $ i ++) ;
328329 for (; $ i && $ i < strlen ($ actual ) && $ actual [$ i - 1 ] >= "\x80" && $ actual [$ i ] >= "\x80" && $ actual [$ i ] < "\xC0" ; $ i --) ;
329330 $ i = max (0 , min (
330- $ i - (int )(self ::$ maxLength / 3 ), // try to display 1/3 of shorter string
331+ $ i - (int ) (self ::$ maxLength / 3 ), // try to display 1/3 of shorter string
331332 max (strlen ($ actual ), strlen ($ expected )) - self ::$ maxLength + 3 // 3 = length of ...
332333 ));
333334 if ($ i ) {
@@ -342,8 +343,7 @@ public static function storeAssertDiff(AssertException $assertException, $testFi
342343 ) {
343344 if (($ delta = strlen ($ m [1 ]) - strlen ($ m [3 ])) >= 3 ) {
344345 $ message = "$ m [1 ]$ m [2 ]\n" . str_repeat (' ' , $ delta - 3 ) . "... $ m [3 ]$ m [4 ]" ;
345- }
346- else {
346+ } else {
347347 $ message = "$ m [1 ]$ m [2 ]$ m [3 ]\n" . str_repeat (' ' , strlen ($ m [1 ]) - 4 ) . "... $ m [4 ]" ;
348348 }
349349 }
@@ -354,6 +354,7 @@ public static function storeAssertDiff(AssertException $assertException, $testFi
354354 ]);
355355 }
356356
357+
357358 /**
358359 * Dumps data to folder 'output'.
359360 * @internal
You can’t perform that action at this time.
0 commit comments