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.
This commit is contained in:
logmanoriginal 2016-08-02 10:30:24 +02:00
parent 4f1558e27a
commit 8793eb62ec
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,8 @@ abstract class BridgeTest extends PHPUnit_Framework_TestCase {
PHPUnit_Framework_Error_Notice::$enabled = FALSE; PHPUnit_Framework_Error_Notice::$enabled = FALSE;
ini_set('default_socket_timeout', 30); ini_set('default_socket_timeout', 30);
BridgeTest::$argNumber = 0;
} }
public function setUp() { public function setUp() {

View File

@ -4,7 +4,7 @@
colors="true" colors="true"
bootstrap="../lib/Tests.php" bootstrap="../lib/Tests.php"
processIsolation="true" processIsolation="false"
timeoutForSmallTests="1" timeoutForSmallTests="1"
timeoutForMediumTests="1" timeoutForMediumTests="1"
timeoutForLargeTests="6" > timeoutForLargeTests="6" >