Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResultPrinter.php

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\Default

Code

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);
}
RSS feed
Powered by Drupal