com phpruntests: Simplified method.: src/configuration/preconditions/rtIfParallelHasPcntl.php

From: Date: Sat, 25 Apr 2009 15:13:53 +0000
Subject: com phpruntests: Simplified method.: src/configuration/preconditions/rtIfParallelHasPcntl.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66525@lists.php.net to get a copy of this message
Commit: b82d0be7a8e0935688ae40482392f3f423b1c38e Author: Stefan Priebsch <spriebsch@php.net> Sat, 25 Apr 2009 15:13:53 +0000 Parents: 3a968d6226937ba07b7b5a00a03c85a3b136cf8a Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=b82d0be7a8e0935688ae40482392f3f423b1c38e Log: Simplified method. Changed paths: M src/configuration/preconditions/rtIfParallelHasPcntl.php Diff: diff --git a/src/configuration/preconditions/rtIfParallelHasPcntl.php b/src/configuration/preconditions/rtIfParallelHasPcntl.php index e6f8f1f..b5a6887 100644 --- a/src/configuration/preconditions/rtIfParallelHasPcntl.php +++ b/src/configuration/preconditions/rtIfParallelHasPcntl..php @@ -24,9 +24,7 @@ class rtIfParallelHasPcntl extends rtPreCondition public function check(rtCommandLineOptions $commandLine = null, rtEnvironmentVariables $environmentVariables = null) { if ($commandLine->hasOption('z') || $environmentVariables->hasVariable('TESTS_PHP_PARALLEL')) { - if (!extension_loaded('pcntl')) { - return false; - } + return extension_loaded('pcntl'); } return true;

« previous php.qa (#66525) next »