2019-12-18 20:12:45 +00:00
|
|
|
<?php
|
|
|
|
|
2022-07-30 22:43:58 +00:00
|
|
|
namespace MediaWiki\Extension\Scribunto\Tests\Engines\LuaCommon;
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
class LuaEngineTestSkip extends TestCase {
|
2020-12-18 19:04:17 +00:00
|
|
|
/** @var string */
|
2022-01-10 09:45:50 +00:00
|
|
|
private $className;
|
2020-12-18 19:04:17 +00:00
|
|
|
/** @var string */
|
2022-01-10 09:45:50 +00:00
|
|
|
private $message;
|
2019-12-18 20:12:45 +00:00
|
|
|
|
2020-01-14 18:50:34 +00:00
|
|
|
/**
|
|
|
|
* @param string $className Class being skipped
|
|
|
|
* @param string $message Skip message
|
|
|
|
*/
|
2019-12-18 20:12:45 +00:00
|
|
|
public function __construct( $className = '', $message = '' ) {
|
|
|
|
$this->className = $className;
|
|
|
|
$this->message = $message;
|
|
|
|
parent::__construct( 'testDummy' );
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testDummy() {
|
|
|
|
if ( $this->className ) {
|
|
|
|
$this->markTestSkipped( $this->message );
|
|
|
|
} else {
|
|
|
|
// Dummy
|
|
|
|
$this->assertTrue( true );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public function toString(): string {
|
|
|
|
return $this->className;
|
|
|
|
}
|
|
|
|
}
|