From 3e447bc1e30107897e1cdb24c7f5a4ac1a72588e Mon Sep 17 00:00:00 2001 From: gggeek Date: Thu, 9 Feb 2023 10:13:14 +0000 Subject: [PATCH] test fixes --- tests/WebTestCase.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/WebTestCase.php b/tests/WebTestCase.php index 4a0b19e8..b28b7db7 100644 --- a/tests/WebTestCase.php +++ b/tests/WebTestCase.php @@ -29,11 +29,13 @@ abstract class PhpXmlRpc_WebTestCase extends PhpXmlRpc_ServerAwareTestCase CURLOPT_POSTFIELDS => $payload )); } - curl_setopt($ch, CURLOPT_COOKIE, 'PHPUNIT_RANDOM_TEST_ID=' . static::$randId); + $cookie = 'PHPUNIT_RANDOM_TEST_ID=' . static::$randId; if ($this->collectCodeCoverageInformation) { - curl_setopt($ch, CURLOPT_COOKIE, 'PHPUNIT_SELENIUM_TEST_ID='.$this->testId); + $cookie .= '; PHPUNIT_SELENIUM_TEST_ID=' . $this->testId; } + curl_setopt($ch, CURLOPT_COOKIE, $cookie); + if ($this->args['DEBUG'] > 0) { curl_setopt($ch, CURLOPT_VERBOSE, 1); } -- 2.47.0