}
class MediaWikiParserTestSuite extends PHPUnit_Framework_TestSuite {
-#implements PHPUnit_Framework_SelfDescribing {
static private $count;
static public $parser;
static public $iter;
+ public static function addTables(&$tables) {
+ $tables[] = 'user_properties';
+ $tables[] = 'filearchive';
+ $tables[] = 'logging';
+ return true;
+ }
+
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite();
+ global $wgHooks;
+ $wgHooks['ParserTestTables'][] = "MediaWikiParserTestSuite::addTables";
+
self::$iter = new TestFileIterator( PARSER_TESTS );
foreach(self::$iter as $i => $test) {
$wgLocalFileRepo = array(
'class' => 'LocalRepo',
'name' => 'local',
- 'directory' => '',
+ 'directory' => 'test-repo',
'url' => 'http://example.com/images',
'hashLevels' => 2,
'transformVia404' => false,
);
- $wgNamespaceProtection[NS_MEDIAWIKI] = 'editinterface';
+ $wgNamespaceProtection[NS_MEDIAWIKI] = 'editinterface';
$wgNamespaceAliases['Image'] = NS_FILE;
$wgNamespaceAliases['Image_talk'] = NS_FILE_TALK;
return $suite;
}
- public function tearDown() {
- $this->teardownDatabase();
- $this->recorder->report();
- $this->recorder->end();
- $this->teardownUploadDir($this->uploadDir);
- }
+ /* public function tearDown() { */
+ /* $this->teardownDatabase(); */
+ /* $this->recorder->report(); */
+ /* $this->recorder->end(); */
+ /* $this->teardownUploadDir($this->uploadDir); */
+ /* } */
public function count() {return self::$count;}
}
- private $db;
private $uploadDir;
private $keepUploads;
/**
}
}
+/**
+ * @group Stub
+ */
class ParserUnitTest extends PHPUnit_Framework_TestCase {
private $number = 0;
private $test = "";
- public function __construct($number, $test) {
+ public function testBogus() {
+ $this->markTestSkipped("This is a stub");
+ }
+
+ public function __construct($number = null, $test = null) {
$this->number = $number;
$this->test = $test;
}