Parser tests now working under phpunit
[lhc/web/wiklou.git] / tests / README.ALTERNATIVE
1 This file describes an alternative way of testing from that in README
2 since the README method didn't work for me.
3
4 - Put a LocalSettings.php in the parent directory. If you checked
5 out mediawiki/trunk/phase3 as a directory called mediawiki, then
6 this is where your LocalSettings.php file would go.
7 - Install PHPUnit. I used version 3.3.16 from Ubuntu.
8 ("aptitude install phpunit").
9 - Invoke phpunit directly instead of using make. This uses the
10 phpunit.xml file to run the tests.
11 - Fix broken tests.
12 - Label currently broken tests in the group Broken and they will not
13 be run by phpunit. You can add them to the group by putting the
14 following comment at the top of the file:
15
16 /**
17 * @group Broken
18 */
19
20
21
22 NOTE: I haven't yet determined why but my PHP installation would
23 sometimes segfault while linting the files. PHPUnit uses "php -l" to
24 check file syntax and this is where the segfaults were happening.