mediawiki-extensions-Scribunto/tests/phpunit/engines/LuaCommon/LuaEngineTestSkip.php
Brad Jorsch 3a19bb8b0c Document a lot of methods
Clear up a bunch of phpcs ignores by documenting many methods.

Also remove Scribunto_LuaError::setLineMap(), which has apparently never
been used since it was added in Ia51f439e.

Change-Id: I763bcdbc7edbbb8e4600495a03acca3439fc0ec9
2020-01-17 23:03:03 +00:00

30 lines
632 B
PHP

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