From deabc006bc73335db85edfd9e9683eee89ac17c4 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Mon, 28 Sep 2015 14:41:44 +0300 Subject: [PATCH] Make lines short to pass phpcs in testHelpers.inc Bug: T102614 Change-Id: I317889b94213b626576ebcd4e15a4f95ee250d69 --- tests/testHelpers.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.20.1