mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 18:57:22 +01:00
CS
This commit is contained in:
@ -59,7 +59,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
private function logo(): void
|
private function logo(): void
|
||||||
{
|
{
|
||||||
$this->writeNewLine();
|
$this->writeNewLine();
|
||||||
$this->write('Pest '.version());
|
$this->write('Pest ' . version());
|
||||||
$this->writeNewLine();
|
$this->writeNewLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
});
|
});
|
||||||
|
|
||||||
foreach ($filteredResults as $key => $info) {
|
foreach ($filteredResults as $key => $info) {
|
||||||
$this->writeProgressWithColor($info['color'], $info['count']." $key");
|
$this->writeProgressWithColor($info['color'], $info['count'] . " $key");
|
||||||
|
|
||||||
if ($key !== array_reverse(array_keys($filteredResults))[0]) {
|
if ($key !== array_reverse(array_keys($filteredResults))[0]) {
|
||||||
$this->write(', ');
|
$this->write(', ');
|
||||||
@ -117,9 +117,9 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
public function startTestSuite(TestSuite $suite): void
|
public function startTestSuite(TestSuite $suite): void
|
||||||
{
|
{
|
||||||
if (static::isPestTestSuite($suite)) {
|
if (static::isPestTestSuite($suite)) {
|
||||||
$this->writeWithColor('fg-white, bold', ' '.substr_replace($suite->getName(), '', 0, 2).' ');
|
$this->writeWithColor('fg-white, bold', ' ' . substr_replace($suite->getName(), '', 0, 2) . ' ');
|
||||||
} else {
|
} else {
|
||||||
$this->writeWithColor('fg-white, bold', ' '.$suite->getName());
|
$this->writeWithColor('fg-white, bold', ' ' . $suite->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->flowId = (int) getmypid();
|
$this->flowId = (int) getmypid();
|
||||||
@ -138,7 +138,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
$this->printEvent(
|
$this->printEvent(
|
||||||
self::TEST_SUITE_STARTED, [
|
self::TEST_SUITE_STARTED, [
|
||||||
self::NAME => $suiteName,
|
self::NAME => $suiteName,
|
||||||
self::LOCATION_HINT => self::PROTOCOL.$suiteName,
|
self::LOCATION_HINT => self::PROTOCOL . $suiteName,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -149,7 +149,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
$this->printEvent(
|
$this->printEvent(
|
||||||
self::TEST_SUITE_STARTED, [
|
self::TEST_SUITE_STARTED, [
|
||||||
self::NAME => substr($suiteName, 2),
|
self::NAME => substr($suiteName, 2),
|
||||||
self::LOCATION_HINT => self::PROTOCOL.$fileName,
|
self::LOCATION_HINT => self::PROTOCOL . $fileName,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
$this->printEvent(
|
$this->printEvent(
|
||||||
self::TEST_SUITE_FINISHED, [
|
self::TEST_SUITE_FINISHED, [
|
||||||
self::NAME => $suiteName,
|
self::NAME => $suiteName,
|
||||||
self::LOCATION_HINT => self::PROTOCOL.$suiteName,
|
self::LOCATION_HINT => self::PROTOCOL . $suiteName,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -229,7 +229,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
$this->printEvent('testStarted', [
|
$this->printEvent('testStarted', [
|
||||||
self::NAME => $test->getName(),
|
self::NAME => $test->getName(),
|
||||||
// @phpstan-ignore-next-line
|
// @phpstan-ignore-next-line
|
||||||
self::LOCATION_HINT => self::PROTOCOL.$test->toString(),
|
self::LOCATION_HINT => self::PROTOCOL . $test->toString(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user