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:
Amir Sarabadani 2019-10-05 21:31:04 +02:00
parent b3ab92546e
commit 167e4cb60f
5 changed files with 2 additions and 5 deletions

View file

@ -2,7 +2,6 @@
class ScribuntoHooksTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
use PHPUnit4And6Compat;
public function provideContentHandlerDefaultModelFor() {
return [

View file

@ -11,7 +11,6 @@
*/
abstract class Scribunto_LuaEngineUnitTestBase extends \PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
use PHPUnit4And6Compat;
use Scribunto_LuaEngineTestHelper;
private static $staticEngineName = null;

View file

@ -8,7 +8,6 @@
*/
class Scribunto_LuaEnvironmentComparisonTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
use PHPUnit4And6Compat;
public $sandboxOpts = [
'memoryLimit' => 50000000,

View file

@ -2,7 +2,6 @@
abstract class Scribunto_LuaInterpreterTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
use PHPUnit4And6Compat;
/**
* @return Scribunto_LuaInterpreter

View file

@ -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();