Skip to content
Permalink
Browse files

used ::class

  • Loading branch information...
dg committed Feb 27, 2019
1 parent b7da70e commit 13d79f09910b7af61d72e19cccc4b0eb5aed40c2
Showing with 5 additions and 5 deletions.
  1. +1 βˆ’1 src/Framework/Dumper.php
  2. +3 βˆ’3 src/Framework/Environment.php
  3. +1 βˆ’1 src/Runner/PhpInterpreter.php
@@ -314,7 +314,7 @@ public static function dumpException(\Throwable $e): string
if ($e instanceof AssertException && $item['file'] === __DIR__ . DIRECTORY_SEPARATOR . 'Assert.php') {
continue;
}
$line = $item['class'] === 'Tester\Assert' && method_exists($item['class'], $item['function'])
$line = $item['class'] === Assert::class && method_exists($item['class'], $item['function'])
&& strpos($tmp = file($item['file'])[$item['line'] - 1], "::$item[function](") ? $tmp : null;
$s .= 'in '
@@ -49,9 +49,9 @@ public static function setup(): void
self::setupColors();
self::$obLevel = ob_get_level();
class_exists('Tester\Runner\Job');
class_exists('Tester\Dumper');
class_exists('Tester\Assert');
class_exists(Runner\Job::class);
class_exists(Dumper::class);
class_exists(Assert::class);
$annotations = self::getTestAnnotations();
self::$checkAssertions = !isset($annotations['outputmatch']) && !isset($annotations['outputmatchfile']);
@@ -48,7 +48,7 @@ public function __construct(string $path, array $args = [])
$output = stream_get_contents($pipes[1]);
proc_close($proc);
$args = ' ' . implode(' ', array_map(['Tester\Helpers', 'escapeArg'], $args));
$args = ' ' . implode(' ', array_map([Helpers::class, 'escapeArg'], $args));
if (strpos($output, 'phpdbg') !== false) {
$args = ' -qrrb -S cli' . $args;
}

0 comments on commit 13d79f0

Please sign in to comment.
You can’t perform that action at this time.