4 * This is the suite class for running tests within a single .txt source file.
5 * It is not invoked directly. Use --filter to select files, or
8 class ParserTestFileSuite
extends PHPUnit_Framework_TestSuite
{
13 function __construct( $runner, $name, $fileName ) {
14 parent
::__construct( $name );
15 $this->ptRunner
= $runner;
16 $this->ptFileName
= $fileName;
17 $this->ptFileInfo
= TestFileReader
::read( $this->ptFileName
);
19 foreach ( $this->ptFileInfo
['tests'] as $test ) {
20 $this->addTest( new ParserIntegrationTest( $runner, $fileName, $test ),
21 [ 'Database', 'Parser', 'ParserTests' ] );
26 $this->ptRunner
->addArticles( $this->ptFileInfo
[ 'articles'] );