From d68718414ac63d0b83a20072158447428593ff5c Mon Sep 17 00:00:00 2001 From: Thomas Lamy Date: Wed, 17 Mar 2021 07:59:33 +0100 Subject: [PATCH] #4591 do not treat warnings as error in teamcity --- src/Util/Log/TeamCity.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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); } /**