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:
aude 2014-05-08 07:03:28 +02:00
parent 64360099b4
commit bb0f10b751

View file

@ -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';