mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-20 20:02:53 +00:00
408f4d0bc6
Change-Id: I4977bf534400643f83ab3400c3dfd736c53f9705
36 lines
733 B
PHP
36 lines
733 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Scribunto\Tests\Engines\LuaCommon;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class LuaEngineTestSkip extends TestCase {
|
|
/** @var string */
|
|
private $className;
|
|
/** @var string */
|
|
private $message;
|
|
|
|
/**
|
|
* @param string $className Class being skipped
|
|
* @param string $message Skip message
|
|
*/
|
|
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;
|
|
}
|
|
}
|