Fix type after upgrading to phpunit 7

See I77ea560f4a5344bd1c356ecc3e7857968ad829b8

Change-Id: Ie9c83cf44e6555a9ae1f3182fdc3cc4269329fa7
This commit is contained in:
Florian 2019-11-21 17:46:18 +01:00
parent d15c4918f3
commit b0103abfed
2 changed files with 3 additions and 3 deletions

View file

@ -76,7 +76,7 @@ abstract class Scribunto_LuaEngineTestBase extends MediaWikiLangTestCase {
return Title::newMainPage(); return Title::newMainPage();
} }
public function toString() { public function toString(): string {
// When running tests written in Lua, return a nicer representation in // When running tests written in Lua, return a nicer representation in
// the failure message. // the failure message.
if ( $this->luaTestName ) { if ( $this->luaTestName ) {
@ -144,7 +144,7 @@ class Scribunto_LuaEngineTestSkip extends PHPUnit\Framework\TestCase {
} }
} }
public function toString() { public function toString(): string {
return $this->className; return $this->className;
} }
} }

View file

@ -68,7 +68,7 @@ abstract class Scribunto_LuaEngineUnitTestBase extends \PHPUnit\Framework\TestCa
parent::tearDown(); parent::tearDown();
} }
public function toString() { public function toString(): string {
// When running tests written in Lua, return a nicer representation in // When running tests written in Lua, return a nicer representation in
// the failure message. // the failure message.
if ( $this->luaTestName ) { if ( $this->luaTestName ) {