gallery: Fix phan annotation for ImageGalleryBase::getImages
[mediawiki.git] / tests / parser / PhpunitTestRecorder.php
blob996c2ba8def02dd833aee97abe1910eb9dbcf91f
1 <?php
3 use PHPUnit\Framework\TestCase;
4 use Wikimedia\Parsoid\ParserTests\Test as ParserTest;
5 use Wikimedia\Parsoid\ParserTests\TestMode as ParserTestMode;
7 class PhpunitTestRecorder extends TestRecorder {
8 /** @var TestCase */
9 private $testCase;
11 public function setTestCase( TestCase $testCase ) {
12 $this->testCase = $testCase;
15 /**
16 * Mark a test skipped
17 * @param ParserTest $test
18 * @param ParserTestMode $mode
19 * @param string $reason
21 public function skipped( ParserTest $test, ParserTestMode $mode, string $reason ) {
22 $this->testCase->markTestSkipped( "SKIPPED: $reason" );