/**
* These tests should work regardless of $wgCapitalLinks
+ * @group Broken
*/
class LocalFileTest extends PHPUnit_Framework_TestCase {
--- /dev/null
+This file describes an alternative way of testing from that in README
+since the README method didn't work for me.
+
+ - Put a LocalSettings.php in the parent directory. If you checked
+ out mediawiki/trunk/phase3 as a directory called mediawiki, then
+ this would go in your
+ - Install PHPUnit. I used version 3.3.16 from Ubuntu.
+ ("aptitude install phpunit").
+ - Invoke phpunit directly instead of using make. This uses the
+ phpunit.xml file to run the tests.
+ - Fix broken tests.
+ - Label currently broken tests in the group Broken and they will not
+ be run by phpunit. You can add them to the group by putting the
+ following comment at the top of the file:
+
+ /**
+ * @group Broken
+ */
+
+
+
+NOTE: I haven't yet determined why but my PHP installation would
+sometimes segfault while linting the files. PHPUnit uses "php -l" to
+check file syntax.
require_once 'MediaWiki_TestCase.php';
-/** @todo document */
+/** @todo document
+ * @group Broken
+ */
+
class SearchEngineTest extends MediaWiki_TestCase {
var $db, $search;
<?php
require_once( 'SearchEngineTest.php' );
+/**
+ * @group Broken
+ */
+
class SearchMySQL4Test extends SearchEngineTest {
var $db;
--- /dev/null
+<?php
+
+$IP = realpath(dirname( __FILE__ ) . '/..');
+define('MEDIAWIKI', 1);
+global $optionsWithArgs;
+$optionsWithArgs = array();
+
+require_once( '../maintenance/commandLine.inc' );
--- /dev/null
+<!-- See http://www.phpunit.de/manual/3.3/en/appendixes.configuration.html -->
+<phpunit bootstrap="./bootstrap.php"
+ colors="false"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ stopOnFailure="true">
+ <testsuite name="MediaWiki Test Suite">
+ <directory>.</directory>
+ </testsuite>
+ <groups>
+ <exclude>
+ <group>Broken</group>
+ </exclude>
+ </groups>
+</phpunit>
\ No newline at end of file