]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - tests/parser/PhpunitTestRecorder.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / tests / parser / PhpunitTestRecorder.php
diff --git a/tests/parser/PhpunitTestRecorder.php b/tests/parser/PhpunitTestRecorder.php
new file mode 100644 (file)
index 0000000..2f82ca7
--- /dev/null
@@ -0,0 +1,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" );
+       }
+}