diff --git a/src/Logging/TeamCity.php b/src/Logging/TeamCity.php index f45f207c..5cdeb9e5 100644 --- a/src/Logging/TeamCity.php +++ b/src/Logging/TeamCity.php @@ -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, [