More work on output

This commit is contained in:
luke
2021-07-16 17:26:48 +01:00
parent e16104350e
commit e59606818d

View File

@ -71,7 +71,7 @@ final class TeamCity extends DefaultResultPrinter
/** @phpstan-ignore-next-line */
public function startTestSuite(TestSuite $suite): void
{
if (!str_contains($suite->getName(), '.php')) {
if (str_starts_with($suite->getName(), 'P\\')) {
$this->writeWithColor('bg-white, fg-black, bold', ' ' . substr_replace($suite->getName(), '', 0, 2) . ' ');
}
@ -111,6 +111,10 @@ final class TeamCity extends DefaultResultPrinter
{
$suiteName = $suite->getName();
if (str_starts_with($suiteName, 'P\\')) {
$this->writeNewLine();
}
if (file_exists($suiteName) || !method_exists($suiteName, '__getFileName')) {
$this->printEvent(
self::TEST_SUITE_FINISHED, [