mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Fix type after upgrading to phpunit 7
See I77ea560f4a5344bd1c356ecc3e7857968ad829b8 Change-Id: Ie9c83cf44e6555a9ae1f3182fdc3cc4269329fa7
This commit is contained in:
parent
d15c4918f3
commit
b0103abfed
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in a new issue