mediawiki-extensions-Scribunto/tests/phpunit/engines/LuaCommon/LuaEngineTestSkip.php

26 lines
533 B
PHP
Raw Normal View History

<?php
class Scribunto_LuaEngineTestSkip extends PHPUnit\Framework\TestCase {
private $className = '';
private $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;
}
}