Skip to content

Commit

Permalink
add code for faster debugging next time
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Sep 21, 2022
1 parent ce76158 commit 328561d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Internal/Codebase/InternalCallMapHandlerTest.php
Expand Up @@ -51,7 +51,6 @@ class InternalCallMapHandlerTest extends TestCase
private static $ignoredFunctions = [
'apcu_entry',
'array_multisort',
'count', // #8346
'bcdiv',
'bcmod',
'bcpowmod',
Expand Down Expand Up @@ -520,7 +519,13 @@ public function testIgnoresAreSortedAndUnique(): void
/** @var string */
$function = is_int($key) ? $value : $key;

$this->assertGreaterThan(0, strcmp($function, $previousFunction));
$diff = strcmp($function, $previousFunction);
if ($diff <= 0) {
// faster debugging errors in tests
echo "\n" . $previousFunction . "\n" . $function . "\n";
}

$this->assertGreaterThan(0, $diff);
$previousFunction = $function;
}
}
Expand Down

0 comments on commit 328561d

Please sign in to comment.