mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 15:06:53 +00:00
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:
parent
4f1558e27a
commit
8793eb62ec
@ -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() {
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
colors="true"
|
||||
bootstrap="../lib/Tests.php"
|
||||
processIsolation="true"
|
||||
processIsolation="false"
|
||||
timeoutForSmallTests="1"
|
||||
timeoutForMediumTests="1"
|
||||
timeoutForLargeTests="6" >
|
||||
|
Loading…
Reference in New Issue
Block a user