Skip to content

Commit

Permalink
skip test for php version < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mzk committed Mar 1, 2017
1 parent b67ed7f commit 1b1857c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ParallelLint.lint.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ class ParallelLintLintTest extends Tester\TestCase
Assert::false($result->hasSyntaxError());
Assert::equal(0, count($result->getErrors()));

if (PHP_VERSION_ID < 70000) {
Tester\Environment::skip('test for php version > 7.0');
}

$parallelLint = new ParallelLint($this->getPhpExecutable());
$parallelLint->setShowDeprecated(true);
$result = $parallelLint->lint(array(__DIR__ . '/examples/example-05/Foo.php'));
Expand Down

0 comments on commit 1b1857c

Please sign in to comment.