Make lines short to pass phpcs in testHelpers.inc
Bug: T102614 Change-Id: I317889b94213b626576ebcd4e15a4f95ee250d69
This commit is contained in:
parent
776aee43d2
commit
deabc006bc
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue