forked from laravel/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Ignore skipped tests (laravel#42585)
* Ignore skipped tests * wip
- Loading branch information
1 parent
6ffb741
commit 29c7b9b
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Illuminate\Tests; | ||
|
||
use PHPUnit\Framework\TestResult; | ||
use PHPUnit\Runner\Version; | ||
use PHPUnit\TextUI\DefaultResultPrinter as PHPUnit9ResultPrinter; | ||
use PHPUnit\TextUI\ResultPrinter as PHPUnit8ResultPrinter; | ||
|
||
if (class_exists(Version::class) && (int) Version::series()[0] >= 9) { | ||
class IgnoreSkippedPrinter extends PHPUnit9ResultPrinter | ||
{ | ||
protected function printSkipped(TestResult $result): void | ||
{ | ||
// | ||
} | ||
} | ||
} else { | ||
class IgnoreSkippedPrinter extends PHPUnit8ResultPrinter | ||
{ | ||
protected function printSkipped(TestResult $result): void | ||
{ | ||
// | ||
} | ||
} | ||
} |