Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeerickson committed Feb 29, 2020
2 parents a55af64 + 8bd7c34 commit 76b98b9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Printer extends ResultPrinter71
}

$low = version_compare(Version::series(), '8.0', '>=');
$high = version_compare(Version::series(),'8.99.99','<=');
$high = version_compare(Version::series(), '8.99.99', '<=');

if ($low && $high) {
class Printer extends ResultPrinter80
Expand Down
2 changes: 1 addition & 1 deletion src/ResultPrinter71.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function formatExceptionMsg($exceptionMessage): string
return "$exceptionMessage";
}

protected function printDefectTrace(TestFailure $defect):void
protected function printDefectTrace(TestFailure $defect): void
{
$this->write($this->formatExceptionMsg($defect->getExceptionAsString()));
$trace = Filter::getFilteredStacktrace(
Expand Down
4 changes: 2 additions & 2 deletions src/ResultPrinter80.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use PHPUnit\Framework\TestFailure;

$low = version_compare(Version::series(), '8.0', '>=');
$high = version_compare(Version::series(),'8.99.99','<=');
$high = version_compare(Version::series(), '8.99.99', '<=');

if ($low && $high) {
class ResultPrinter80 extends ResultPrinter
Expand Down Expand Up @@ -83,7 +83,7 @@ protected function formatExceptionMsg($exceptionMessage): string
return "$exceptionMessage";
}

protected function printDefectTrace(TestFailure $defect):void
protected function printDefectTrace(TestFailure $defect): void
{
$this->write($this->formatExceptionMsg($defect->getExceptionAsString()));
$trace = Filter::getFilteredStacktrace(
Expand Down
2 changes: 1 addition & 1 deletion src/ResultPrinter90.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function formatExceptionMsg($exceptionMessage): string
return "$exceptionMessage";
}

protected function printDefectTrace(TestFailure $defect):void
protected function printDefectTrace(TestFailure $defect): void
{
$this->write($this->formatExceptionMsg($defect->getExceptionAsString()));
$trace = Filter::getFilteredStacktrace(
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/PrinterCoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PrinterCoreTest extends PHPUnit\Framework\TestCase
*/
protected $printer;

public function setUp():void
public function setUp(): void
{
$this->printer = new Printer();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/PrinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PrinterTest extends PHPUnit\Framework\TestCase
*/
protected $printer;

public function setUp():void
public function setUp(): void
{
$this->printer = new Printer();
}
Expand Down

0 comments on commit 76b98b9

Please sign in to comment.