Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
v3.0.0 lol
Browse files Browse the repository at this point in the history
  • Loading branch information
defenestrator committed Mar 15, 2018
1 parent 82d2e0f commit d4e504f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Copacetic/TestResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public function endTest(\PHPUnit\Framework\Test $test, $time)
$this->lastTestFailed = false;

if (get_class($test) == 'PHPUnit\Framework\TestSuite') {
$this->out(" SETUP FAIL at " . $time, 'fg-red', true);
$this->out(" SETUP FAIL at " . $time . ' seconds.', 'fg-red', true);
} elseif ($test->hasFailed()) {
$this->out(" FAIL at " . $time, 'fg-red', true);
$this->out(" FAIL at " . $time .' seconds.', 'fg-red', true);
} else {
$numAssertions = ($test instanceof \PHPUnit\Framework\TestCase) ? $test->getNumAssertions() : 1;
if ($numAssertions > 0) {
Expand All @@ -67,8 +67,7 @@ public function startTestSuite(\PHPUnit\Framework\TestSuite $suite)
parent::startTestSuite($suite);

if (!$this->headerPrinted) {
$header = "
██████╗ ██╗ ██╗██████╗ ██╗ ██╗███╗ ██╗██╗████████╗
$header = "██████╗ ██╗ ██╗██████╗ ██╗ ██╗███╗ ██╗██╗████████╗
██╔══██╗██║ ██║██╔══██╗██║ ██║████╗ ██║██║╚══██╔══╝
██████╔╝███████║██████╔╝██║ ██║██╔██╗ ██║██║ ██║
██╔═══╝ ██╔══██║██╔═══╝ ██║ ██║██║╚██╗██║██║ ██║
Expand Down

0 comments on commit d4e504f

Please sign in to comment.