diff --git a/tests/engines/LuaCommon/LuaEngineTestBase.php b/tests/engines/LuaCommon/LuaEngineTestBase.php index c9de00b3..38f7b22e 100644 --- a/tests/engines/LuaCommon/LuaEngineTestBase.php +++ b/tests/engines/LuaCommon/LuaEngineTestBase.php @@ -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';