mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Clean up most of b/c for phpunit4
We don't support phpunit4 anymore: https://w.wiki/9UT Change-Id: I13a4a09e21a13c8f1e29b9e0ca29f05d1eac997d
This commit is contained in:
parent
b3ab92546e
commit
167e4cb60f
|
@ -2,7 +2,6 @@
|
|||
|
||||
class ScribuntoHooksTest extends PHPUnit\Framework\TestCase {
|
||||
use MediaWikiCoversValidator;
|
||||
use PHPUnit4And6Compat;
|
||||
|
||||
public function provideContentHandlerDefaultModelFor() {
|
||||
return [
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
abstract class Scribunto_LuaEngineUnitTestBase extends \PHPUnit\Framework\TestCase {
|
||||
use MediaWikiCoversValidator;
|
||||
use PHPUnit4And6Compat;
|
||||
use Scribunto_LuaEngineTestHelper;
|
||||
|
||||
private static $staticEngineName = null;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
*/
|
||||
class Scribunto_LuaEnvironmentComparisonTest extends PHPUnit\Framework\TestCase {
|
||||
use MediaWikiCoversValidator;
|
||||
use PHPUnit4And6Compat;
|
||||
|
||||
public $sandboxOpts = [
|
||||
'memoryLimit' => 50000000,
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
abstract class Scribunto_LuaInterpreterTest extends PHPUnit\Framework\TestCase {
|
||||
use MediaWikiCoversValidator;
|
||||
use PHPUnit4And6Compat;
|
||||
|
||||
/**
|
||||
* @return Scribunto_LuaInterpreter
|
||||
|
|
|
@ -129,7 +129,8 @@ class Scribunto_LuaStandaloneInterpreterTest extends Scribunto_LuaInterpreterTes
|
|||
*/
|
||||
public function testLuaToPhpArrayKeyConversion( $lua, $expect ) {
|
||||
if ( $expect instanceof Exception ) {
|
||||
$this->setExpectedException( Scribunto_LuaError::class, $expect->getMessage() );
|
||||
$this->expectException( Scribunto_LuaError::class );
|
||||
$this->expectExceptionMessage( $expect->getMessage() );
|
||||
}
|
||||
|
||||
$interpreter = $this->newInterpreter();
|
||||
|
|
Loading…
Reference in a new issue