Skip to content

Commit

Permalink
^ test WebTestCaseMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
SindlaXYZ committed Dec 28, 2020
1 parent 084719f commit 6660c8e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Tests/WebTestCaseMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,16 @@ public function progressAdvance()

$this->progressIndex = $this->progressIndex + 1;
}

public function success($message)
{
// https://joshtronic.com/2013/09/02/how-to-use-colors-in-command-line-output/
return "\e[0;31;42m{$message}\e[0m\n";
}

public function error($message)
{
// https://joshtronic.com/2013/09/02/how-to-use-colors-in-command-line-output/
return $this->fail("\e[1;37;41m{$message}\e[0m\n");
}
}

0 comments on commit 6660c8e

Please sign in to comment.