Fix @dataProvider with PHPUnit 3.5.8+
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 5 Feb 2011 16:25:18 +0000 (16:25 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 5 Feb 2011 16:25:18 +0000 (16:25 +0000)
commitba4a69e0e2101e4d25ff01ba303fc9632d7b6fec
treeb0667d05d7504500c139fcfaa499eaaf96c11d54
parent136f4c06fa97ca00b2f4ed00822358c8a1dc1961
Fix @dataProvider with PHPUnit 3.5.8+

MediaWikiTestCase duplicates code from PHPUnit constructor. It worked
fine until PHPUnit 3.5.8 made FrameWork_TestCase attributes private,
thus the children class is no more able to update them ($data for example)
The change break any tests making use of the @dataProvider helper.

PHPUnit commit:
https://github.com/sebastianbergmann/phpunit/commit/0b85d08c39ce689bc7320ebc03e7e5a4bfdbcbac

TESTS:
3.5.7  : OK -> OK
3.5.8  : KO -> OK
3.5.10 : KO -> OK

make databaseless
Tests: 486, Assertions: 73986, Incomplete: 1, Skipped: 3.

(skipped tests are SQLite related)
tests/phpunit/MediaWikiTestCase.php