mediawiki-extensions-Math/tests/phpunit/MathMLTestStatus.php
Umherirrender 0be18dc97d Move test helper classes into own class file
Also fix the name of one test file to match the file name

Change-Id: If622e925645cf21bf726f4db0f779182d78bbd73
2019-12-06 21:47:52 +01:00

31 lines
478 B
PHP

<?php
/**
* Helper class for testing
* @author physikerwelt
* @see Status
*/
class MathMLTestStatus {
public static function isGood() {
return MathMathMLTest::$good;
}
public static function hasMessage( $s ) {
if ( $s == 'http-timed-out' ) {
return MathMathMLTest::$timeout;
} else {
return false;
}
}
public static function getHtml() {
return MathMathMLTest::$html;
}
public static function getWikiText() {
return MathMathMLTest::$html;
}
}