summaryrefslogtreecommitdiff
path: root/www/wiki/tests/parser/PhpunitTestRecorder.php
blob: 1a2cfc918de6b5ebaaa901dcab033a50dcb43607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class PhpunitTestRecorder extends TestRecorder {
	private $testCase;

	public function setTestCase( PHPUnit\Framework\TestCase $testCase ) {
		$this->testCase = $testCase;
	}

	/**
	 * Mark a test skipped
	 * @param string $test
	 * @param string $reason
	 */
	public function skipped( $test, $reason ) {
		$this->testCase->markTestSkipped( "SKIPPED: $reason" );
	}
}