X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FTestFileReader.php;h=307bbb6fb9269eb1a978b0fdde8495d5f16ee339;hb=a8f20adc420a9a4ec07d1d7e3f1fd88803153f2d;hp=b6e811b1b8ba32b4ff64278e9a600b0e5a670d63;hpb=dfaa26a7b19ab65190a76cd32259a3637cc3e2fd;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/TestFileReader.php b/tests/parser/TestFileReader.php index b6e811b1b8..307bbb6fb9 100644 --- a/tests/parser/TestFileReader.php +++ b/tests/parser/TestFileReader.php @@ -28,7 +28,6 @@ class TestFileReader { private $sectionLineNum = []; private $lineNum = 0; private $runDisabled; - private $runParsoid; private $regex; private $articles = []; @@ -66,11 +65,9 @@ class TestFileReader { $options = $options + [ 'runDisabled' => false, - 'runParsoid' => false, 'regex' => '//', ]; $this->runDisabled = $options['runDisabled']; - $this->runParsoid = $options['runParsoid']; $this->regex = $options['regex']; } @@ -112,13 +109,6 @@ class TestFileReader { } } - if ( preg_match( '/\\bparsoid\\b/i', $data['options'] ) && $nonTidySection === 'html' - && !$this->runParsoid - ) { - // A test which normally runs on Parsoid but can optionally be run with MW - return; - } - if ( !preg_match( $this->regex, $data['test'] ) ) { // Filtered test return; @@ -165,7 +155,7 @@ class TestFileReader { } private function execute() { - while ( false !== ( $line = fgets( $this->fh ) ) ) { + while ( ( $line = fgets( $this->fh ) ) !== false ) { $this->lineNum++; $matches = []; @@ -333,4 +323,3 @@ class TestFileReader { $this->requirements[$type][$name] = true; } } -