Make lines short to pass phpcs in testHelpers.inc

Bug: T102614
Change-Id: I317889b94213b626576ebcd4e15a4f95ee250d69
This commit is contained in:
Amir E. Aharoni 2015-09-28 14:41:44 +03:00
parent 776aee43d2
commit deabc006bc

View file

@ -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