Merge "Remove perf tracking code that was moved to WikimediaEvents in Ib300af5c"
[lhc/web/wiklou.git] / tests / phpunit / suites / ParserTestFileSuite.php
index d3129b1..b72d8b8 100644 (file)
@@ -18,11 +18,15 @@ class ParserTestFileSuite extends PHPUnit_Framework_TestSuite {
 
                foreach ( $this->ptFileInfo['tests'] as $test ) {
                        $this->addTest( new ParserIntegrationTest( $runner, $fileName, $test ),
-                               [ 'Database', 'Parser' ] );
+                               [ 'Database', 'Parser', 'ParserTests' ] );
                }
        }
 
        function setUp() {
-               $this->ptRunner->addArticles( $this->ptFileInfo[ 'articles'] );
+               if ( !$this->ptRunner->meetsRequirements( $this->ptFileInfo['requirements'] ) ) {
+                       $this->markTestSuiteSkipped( 'required extension not enabled' );
+               } else {
+                       $this->ptRunner->addArticles( $this->ptFileInfo[ 'articles'] );
+               }
        }
 }