Make generating Parser test class names more robust
authorBrian Wolff <bawolff+wn@gmail.com>
Wed, 5 Jun 2013 16:14:27 +0000 (13:14 -0300)
committerReedy <reedy@wikimedia.org>
Tue, 16 Sep 2014 20:38:04 +0000 (20:38 +0000)
commit1bb00307a8ecfa9ecfa222abf6932ed91271f9c8
tree9b97228f68a8983285da0dba5bc39586f83ae8ba
parent45ee5c99d52630e9c5321e786efa77121897a8a2
Make generating Parser test class names more robust

This includes the extension name, and it also does much
more stringent validation. In the (now rather unlikely)
event of a duplicate name, it will append a number.

This is important, as it is very confusing when this bug strikes.
There exists extensions like CharRangeSpan which will trigger this bug.

Bug: 42174
Change-Id: Idf14b4cbdb8ec103340d48855e0361acf707b101
tests/phpunit/includes/parser/MediaWikiParserTest.php