From 8793eb62ec20e810abfa7f2d5fc193c71280d29d Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 2 Aug 2016 10:30:24 +0200 Subject: [PATCH] Prevent static variable '$argNumber' from being reset between test cases Previously the static variable was reset to its initial value for each test case due to process-isolation being set to "true". Now the variable is correctly incremented however must be re-initialized at start of each test to prevent the variable to carry over to the next bridge. --- lib/Tests.php | 3 ++- tests/phpunit.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Tests.php b/lib/Tests.php index fbe88c88..29b879fd 100644 --- a/lib/Tests.php +++ b/lib/Tests.php @@ -38,7 +38,8 @@ abstract class BridgeTest extends PHPUnit_Framework_TestCase { PHPUnit_Framework_Error_Notice::$enabled = FALSE; ini_set('default_socket_timeout', 30); - + + BridgeTest::$argNumber = 0; } public function setUp() { diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 465b8869..1e443053 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -4,7 +4,7 @@ colors="true" bootstrap="../lib/Tests.php" - processIsolation="true" + processIsolation="false" timeoutForSmallTests="1" timeoutForMediumTests="1" timeoutForLargeTests="6" >