com phpruntests: Fixed test to work then no pcntl extension is loaded.: tests/configuration/preconditions/rtIfParallelHasPcntlTest.php
| From: | David Soria Parra | Date: | Sat, 25 Apr 2009 15:13:24 +0000 |
| Subject: | com phpruntests: Fixed test to work then no pcntl extension is loaded.: tests/configuration/preconditions/rtIfParallelHasPcntlTest.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66524@lists.php.net to get a copy of this message | ||
Commit: 3a968d6226937ba07b7b5a00a03c85a3b136cf8a
Author: Stefan Priebsch <spriebsch@php.net> Sat, 25 Apr 2009 15:13:24 +0000
Parents: 6b86c7cf71ac87b30ea8ddfb0c8c28a3ed927918
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=3a968d6226937ba07b7b5a00a03c85a3b136cf8a
Log:
Fixed test to work then no pcntl extension is loaded.
Changed paths:
M tests/configuration/preconditions/rtIfParallelHasPcntlTest.php
Diff:
diff --git a/tests/configuration/preconditions/rtIfParallelHasPcntlTest.php
b/tests/configuration/preconditions/rtIfParallelHasPcntlTest.php
index 832d83c..d3a4036 100644
--- a/tests/configuration/preconditions/rtIfParallelHasPcntlTest.php
+++ b/tests/configuration/preconditions/rtIfParallelHasPcntlTest.php
@@ -13,7 +13,7 @@ class rtIfParallelHasPcntlTest extends PHPUnit_Framework_TestCase
$pre = new rtIfParallelHasPcntl();
- $this->assertTrue($pre->check($clo, $env));
+ $this->assertEquals(extension_loaded('pcntl'), $pre->check($clo, $env));
}
public function testLoaded2()