function ResultPrinter::testLocation
1 call to ResultPrinter::testLocation()
- ResultPrinter::mapTestsWithIssuesEventsToElements in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ResultPrinter.php - @psalm-param…
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ ResultPrinter.php, line 569
Class
- ResultPrinter
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\Output\DefaultCode
private function testLocation(Test $test) : string {
if (!$test->isTestMethod()) {
return '';
}
assert($test instanceof TestMethod);
return sprintf('%s%s:%d%s', PHP_EOL, $test->file(), $test->line(), PHP_EOL);
}