mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-11 16:06:02 +00:00
cb39fead91
Change-Id: Idb7ff848ba702eac2cde31c6198a70311e3bdb69
32 lines
672 B
PHP
32 lines
672 B
PHP
<?php
|
|
|
|
class Scribunto_LuaEngineTestSkip extends PHPUnit\Framework\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;
|
|
}
|
|
}
|