Skip to content

Commit

Permalink
TeamCity logger skips over PhptTestCase events
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Dec 3, 2018
1 parent df35f86 commit 543f76a
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/Util/Log/TeamCity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
[
Expand All @@ -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',
[
Expand All @@ -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),
Expand Down Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand All @@ -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) {
Expand Down Expand Up @@ -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];
Expand All @@ -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(
Expand Down

0 comments on commit 543f76a

Please sign in to comment.