existant -> existent for r61855
[mediawiki.git] / tests / README.ALTERNATIVE
blob4178e09f6111aee9bff6a9741e52f1025399addb
1 This file describes an alternative way of testing from that in README
2 since the README method didn't work for me.
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:
16     /**
17      * @group Broken
18      */
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.