parserTests: Improve class name guessing for PHPUnit
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 8 Jul 2017 07:14:13 +0000 (00:14 -0700)
committerTim Starling <tstarling@wikimedia.org>
Wed, 30 Aug 2017 05:53:28 +0000 (05:53 +0000)
commit6eba88f24c30d8c2ba57d1e35b094099af164ad5
treeabe96e492da87c86201a1c766d7e8499fb0ad81e
parent11cf01dd9a8512ad4d9bded43cf22ebd38af8818
parserTests: Improve class name guessing for PHPUnit

Since we know the extension name, actually use it instead of trying to
guess it based on the directory name.

The new directory layout for autodiscovery encourages "tests/parser" so
the directory one level up is unlikely to be the extension name.

Change-Id: I352944a84197acba6fe425b6044b17c520e263d7
tests/parser/ParserTestRunner.php
tests/phpunit/suites/ParserTestTopLevelSuite.php