mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-19 11:21:48 +00:00
1eecdac6de
Change-Id: I6d730d67decc859fd130fee5ec92b1cfb8d9ef64
32 lines
652 B
PHP
32 lines
652 B
PHP
<?php
|
|
|
|
class 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;
|
|
}
|
|
}
|