Skip to content

Commit

Permalink
Fix test skip-if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Sep 8, 2018
1 parent c848229 commit dbc44a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Regression/GitHub/2085/issue-2085-test.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
https://github.com/sebastianbergmann/phpunit/issues/2085
--SKIPIF--
<?php
if (false || !\class_exists(Invoker::class)) {
print "Package phpunit/php-invoker is required for enforcing time limits");
if (!\class_exists(Invoker::class)) {
print "Skip: package phpunit/php-invoker is required for enforcing time limits" . PHP_EOL;
}

if (!\extension_loaded('pcntl') || \strpos(\ini_get('disable_functions'), 'pcntl') !== false) {
print "Skip: extension pcntl is required for enforcing time limits" . PHP_EOL;
}
--FILE--
<?php
Expand Down

0 comments on commit dbc44a9

Please sign in to comment.