Debian Codegraph @

tests/parser/PhpunitTestRecorder.php

raw symbols SCIP
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 /** @var TestCase */
9 private $testCase;
10
11 public function setTestCase( TestCase $testCase ) {
12 $this->testCase = $testCase;
13 }
14
15 /**
16 * Mark a test skipped
17 * @param ParserTest $test
18 * @param ParserTestMode $mode
19 * @param string $reason
20 */
21 public function skipped( ParserTest $test, ParserTestMode $mode, string $reason ) {
22 $this->testCase->markTestSkipped( "SKIPPED: $reason" );
23 }
24 }