X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FTestFileReader.php;h=307bbb6fb9269eb1a978b0fdde8495d5f16ee339;hb=d183642dfb1ef04d8c3dd552a103c9897035df94;hp=a96485d4d704f6c9457c8070f63fe361bd1e22a9;hpb=2c8f7978df47f338ee6e245e3efba6175ba425e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/TestFileReader.php b/tests/parser/TestFileReader.php index a96485d4d7..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 = [];