Depends-On: I6a653889afd42fefb61daefd8ac842107dce8759 Depends-On: I73f320dfb03e5c26971a7bc36564021d2c9f3695 Change-Id: Id3e44a5b419d7f6917819e72c046f94a3a2286fe
24 lines
604 B
PHP
24 lines
604 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Wikimedia\Parsoid\ParserTests\Test as ParserTest;
|
|
use Wikimedia\Parsoid\ParserTests\TestMode as ParserTestMode;
|
|
|
|
class PhpunitTestRecorder extends TestRecorder {
|
|
/** @var TestCase */
|
|
private $testCase;
|
|
|
|
public function setTestCase( TestCase $testCase ) {
|
|
$this->testCase = $testCase;
|
|
}
|
|
|
|
/**
|
|
* Mark a test skipped
|
|
* @param ParserTest $test
|
|
* @param ParserTestMode $mode
|
|
* @param string $reason
|
|
*/
|
|
public function skipped( ParserTest $test, ParserTestMode $mode, string $reason ) {
|
|
$this->testCase->markTestSkipped( "SKIPPED: $reason" );
|
|
}
|
|
}
|