2019-12-18 20:12:45 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Scribunto_LuaEngineTestSkip extends PHPUnit\Framework\TestCase {
|
|
|
|
private $className = '';
|
|
|
|
private $message = '';
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|