| @@ 20-31 (lines=12) @@ | ||
| 17 | * |
|
| 18 | * This code bellow it's for phpunit@8 |
|
| 19 | */ |
|
| 20 | if (class_exists(\PHPUnit\Runner\Version::class) && intval(substr(\PHPUnit\Runner\Version::id(), 0, 1)) === 8) { |
|
| 21 | ||
| 22 | /** |
|
| 23 | * This is an Collision Phpunit Adapter implementation. |
|
| 24 | * |
|
| 25 | * @internal |
|
| 26 | */ |
|
| 27 | final class Printer extends \PHPUnit\Util\Printer implements \PHPUnit\Framework\TestListener |
|
| 28 | { |
|
| 29 | use PrinterContents; |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * This `if` condition exists because phpunit |
|
| @@ 39-62 (lines=24) @@ | ||
| 36 | * |
|
| 37 | * This code bellow it's for phpunit@9 |
|
| 38 | */ |
|
| 39 | if (class_exists(\PHPUnit\Runner\Version::class) && intval(substr(\PHPUnit\Runner\Version::id(), 0, 1)) === 9) { |
|
| 40 | ||
| 41 | /** |
|
| 42 | * This is an Collision Phpunit Adapter implementation. |
|
| 43 | * |
|
| 44 | * @internal |
|
| 45 | */ |
|
| 46 | final class Printer implements \PHPUnit\TextUI\ResultPrinter |
|
| 47 | { |
|
| 48 | use PrinterContents; |
|
| 49 | ||
| 50 | /** |
|
| 51 | * Intentionally left blank as we output things on events of the listener. |
|
| 52 | * |
|
| 53 | * @param \PHPUnit\Framework\TestResult $result |
|
| 54 | * |
|
| 55 | * @return void |
|
| 56 | */ |
|
| 57 | public function printResult(\PHPUnit\Framework\TestResult $result): void |
|
| 58 | { |
|
| 59 | // .. |
|
| 60 | } |
|
| 61 | } |
|
| 62 | } |
|
| 63 | ||