mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Make LuaEngineTestBase compatible with phpunit 4.1
PHPUnit_Framework_TestSuite::isPublicTestMethod has been removed from phpunit 4.1. Change-Id: I191b5f460fbef122d8e916c8f661f09083b33970
This commit is contained in:
parent
64360099b4
commit
bb0f10b751
|
@ -101,7 +101,7 @@ abstract class Scribunto_LuaEngineTestBase extends MediaWikiTestCase {
|
|||
$engineSuite->setName( "$engineName: $className" );
|
||||
|
||||
foreach ( $class->getMethods() as $method ) {
|
||||
if ( PHPUnit_Framework_TestSuite::isPublicTestMethod( $method ) ) {
|
||||
if ( PHPUnit_Framework_TestSuite::isTestMethod( $method ) && $method->isPublic() ) {
|
||||
$name = $method->getName();
|
||||
$groups = PHPUnit_Util_Test::getGroups( $className, $name );
|
||||
$groups[] = 'Lua';
|
||||
|
|
Loading…
Reference in a new issue