From: Amir E. Aharoni Date: Mon, 28 Sep 2015 11:41:44 +0000 (+0300) Subject: Make lines short to pass phpcs in testHelpers.inc X-Git-Tag: 1.31.0-rc.0~9732^2 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=deabc006bc73335db85edfd9e9683eee89ac17c4;p=lhc%2Fweb%2Fwiklou.git Make lines short to pass phpcs in testHelpers.inc Bug: T102614 Change-Id: I317889b94213b626576ebcd4e15a4f95ee250d69 --- diff --git a/tests/testHelpers.inc b/tests/testHelpers.inc index 16f458bfe6..d73496f070 100644 --- a/tests/testHelpers.inc +++ b/tests/testHelpers.inc @@ -458,8 +458,11 @@ class TestFileIterator implements Iterator { $this->sectionData['config'] = ''; } - $isDisabled = preg_match( '/\\bdisabled\\b/i', $this->sectionData['options'] ) && !$this->parserTest->runDisabled; - $isParsoidOnly = preg_match( '/\\bparsoid\\b/i', $this->sectionData['options'] ) && $result == 'html' && !$this->parserTest->runParsoid; + $isDisabled = preg_match( '/\\bdisabled\\b/i', $this->sectionData['options'] ) && + !$this->parserTest->runDisabled; + $isParsoidOnly = preg_match( '/\\bparsoid\\b/i', $this->sectionData['options'] ) && + $result == 'html' && + !$this->parserTest->runParsoid; $isFiltered = !preg_match( "/" . $this->parserTest->regex . "/i", $this->sectionData['test'] ); if ( $input == false || $result == false || $isDisabled || $isParsoidOnly || $isFiltered ) { # disabled test