Skip to content

Commit 7c00830

Browse files
committed
#16477 - Skip working tests with warnings in PHP8.3
1 parent f6319f1 commit 7c00830

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

tests/integration/Cache/Adapter/Stream/GetSetCest.php

+4
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ public function cacheAdapterStreamGetErrors(IntegrationTester $I)
192192
{
193193
$I->wantToTest('Cache\Adapter\Stream - get() - errors');
194194

195+
if (version_compare(PHP_VERSION, '8.3.0', '>=')) {
196+
$I->markTestSkipped('Since PHP 8.3 warnings causing session ID/Name lock.');
197+
}
198+
195199
$serializer = new SerializerFactory();
196200
$adapter = new Stream(
197201
$serializer,

tests/integration/Storage/Adapter/ExceptionsCest.php

+4
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ public function storageAdapterStreamGetErrors(IntegrationTester $I)
112112
{
113113
$I->wantToTest('Storage\Adapter\Stream - get() - errors');
114114

115+
if (version_compare(PHP_VERSION, '8.3.0', '>=')) {
116+
$I->markTestSkipped('Invalid `unserialize()` will generate warning but still works.');
117+
}
118+
115119
$serializer = new SerializerFactory();
116120
$adapter = new Stream(
117121
$serializer,

tests/integration/Storage/Serializer/ExceptionsCest.php

+5
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ function () {
316316
public function storageSerializerPhpUnserializeError(IntegrationTester $I)
317317
{
318318
$I->wantToTest('Storage\Serializer\Php - unserialize() - error');
319+
320+
if (version_compare(PHP_VERSION, '8.3.0', '>=')) {
321+
$I->markTestSkipped('Invalid `unserialize()` will generate warning but still works.');
322+
}
323+
319324
$serializer = new Php();
320325

321326
$serialized = '{??hello?unserialize"';

tests/unit/Http/Response/GetSetStatusCodeCest.php

+8
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ public function testSetStatusCodeDefaultMessage(UnitTester $I)
146146
*/
147147
public function testHttpResponseSetStatusCodeSend(UnitTester $I)
148148
{
149+
if (!function_exists('xdebug_get_headers')) {
150+
$I->skipTest('xdebug extension is not installed');
151+
}
152+
149153
$response = $this->getResponseObject();
150154

151155
$body = ['test' => 123];
@@ -180,6 +184,10 @@ public function testHttpResponseSetStatusCodeSend(UnitTester $I)
180184
*/
181185
public function testHttpResponseSetStatusCodeSendMicro(UnitTester $I)
182186
{
187+
if (!function_exists('xdebug_get_headers')) {
188+
$I->skipTest('xdebug extension is not installed');
189+
}
190+
183191
$application = new Micro($this->container);
184192

185193
$application->before(new HttpResponseContentMiddleware());

0 commit comments

Comments
 (0)