mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-19 19:31:16 +00:00
3a19bb8b0c
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
30 lines
632 B
PHP
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;
|
|
}
|
|
}
|