X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fsuites%2FParserTestFileSuite.php;h=b72d8b84e3be101889ac85866cae0235ea9264a1;hb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695;hp=dbee8947f9c9c1c3a9e55f6a65ad87bfca1a558d;hpb=9964ca1a390c446397dcd466916ffed356cdc3c9;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'] ); + } } }