| 1 |
<?php |
| 2 |
|
| 3 |
use PHPUnit\Framework\TestCase; |
| 4 |
use Wikimedia\Parsoid\ParserTests\Test as ParserTest; |
| 5 |
use Wikimedia\Parsoid\ParserTests\TestMode as ParserTestMode; |
| 6 |
|
| 7 |
class PhpunitTestRecorder extends TestRecorder { |
| 8 |
|
| 9 |
private $testCase; |
| 10 |
|
| 11 |
public function setTestCase( TestCase $testCase ) { |
| 12 |
$this->testCase = $testCase; |
| 13 |
} |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
public function skipped( ParserTest $test, ParserTestMode $mode, string $reason ) { |
| 22 |
$this->testCase->markTestSkipped( "SKIPPED: $reason" ); |
| 23 |
} |
| 24 |
} |