diff --git a/src/Util/Log/TeamCity.php b/src/Util/Log/TeamCity.php index a6c27b8a980..4e8f446c4d4 100644 --- a/src/Util/Log/TeamCity.php +++ b/src/Util/Log/TeamCity.php @@ -57,10 +57,6 @@ public function printResult(TestResult $result): void */ public function addError(Test $test, \Throwable $t, float $time): void { - if (!$test instanceof TestCase) { - return; - } - $this->printEvent( 'testFailed', [ @@ -79,10 +75,6 @@ public function addError(Test $test, \Throwable $t, float $time): void */ public function addWarning(Test $test, Warning $e, float $time): void { - if (!$test instanceof TestCase) { - return; - } - $this->printEvent( 'testFailed', [ @@ -101,10 +93,6 @@ public function addWarning(Test $test, Warning $e, float $time): void */ public function addFailure(Test $test, AssertionFailedError $e, float $time): void { - if (!$test instanceof TestCase) { - return; - } - $parameters = [ 'name' => $test->getName(), 'message' => self::getMessage($e), @@ -144,10 +132,6 @@ public function addFailure(Test $test, AssertionFailedError $e, float $time): vo */ public function addIncompleteTest(Test $test, \Throwable $t, float $time): void { - if (!$test instanceof TestCase) { - return; - } - $this->printIgnoredTest($test->getName(), $t, $time); } @@ -158,10 +142,6 @@ public function addIncompleteTest(Test $test, \Throwable $t, float $time): void */ public function addRiskyTest(Test $test, \Throwable $t, float $time): void { - if (!$test instanceof TestCase) { - return; - } - $this->addError($test, $t, $time); } @@ -172,10 +152,6 @@ public function addRiskyTest(Test $test, \Throwable $t, float $time): void */ public function addSkippedTest(Test $test, \Throwable $t, float $time): void { - if (!$test instanceof TestCase) { - return; - } - $testName = $test->getName(); if ($this->startedTestName !== $testName) { @@ -277,10 +253,6 @@ public function endTestSuite(TestSuite $suite): void */ public function startTest(Test $test): void { - if (!$test instanceof TestCase) { - return; - } - $testName = $test->getName(); $this->startedTestName = $testName; $params = ['name' => $testName]; @@ -299,10 +271,6 @@ public function startTest(Test $test): void */ public function endTest(Test $test, float $time): void { - if (!$test instanceof TestCase) { - return; - } - parent::endTest($test, $time); $this->printEvent(