diff --git a/src/Util/Log/TeamCity.php b/src/Util/Log/TeamCity.php index 56c11a78b7b..695760d9542 100644 --- a/src/Util/Log/TeamCity.php +++ b/src/Util/Log/TeamCity.php @@ -89,15 +89,7 @@ public function addError(Test $test, Throwable $t, float $time): void */ public function addWarning(Test $test, Warning $e, float $time): void { - $this->printEvent( - 'testFailed', - [ - 'name' => $test->getName(), - 'message' => self::getMessage($e), - 'details' => self::getDetails($e), - 'duration' => self::toMilliseconds($time), - ] - ); + $this->write(self::getMessage($e) . PHP_EOL); } /**