X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fsuites%2FParserTestFileSuite.php;h=b72d8b84e3be101889ac85866cae0235ea9264a1;hb=2a77862c522dd0de76498f905aede9d334618e44;hp=dbee8947f9c9c1c3a9e55f6a65ad87bfca1a558d;hpb=c78b40508091c176c060c47bc91b36de1af7bcd7;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/suites/ParserTestFileSuite.php b/tests/phpunit/suites/ParserTestFileSuite.php index dbee8947f9..b72d8b84e3 100644 --- a/tests/phpunit/suites/ParserTestFileSuite.php +++ b/tests/phpunit/suites/ParserTestFileSuite.php @@ -23,6 +23,10 @@ class ParserTestFileSuite extends PHPUnit_Framework_TestSuite { } 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'] ); + } } }