From: William Desportes <williamdes@wdes.fr>
Date: Tue, 13 Dec 2022 17:48:57 +0100
Subject: Disable tests that need "adriansuter/php-autoload-override" to
 override a built-in PHP function

Origin: vendor
Forwarded: not-needed
---
 tests/HeadersTest.php         |  1 +
 tests/NonBufferedBodyTest.php | 14 ++++++++++++++
 tests/UploadedFileTest.php    |  3 +++
 3 files changed, 18 insertions(+)

diff --git a/tests/HeadersTest.php b/tests/HeadersTest.php
index 0642058..599ec15 100644
--- a/tests/HeadersTest.php
+++ b/tests/HeadersTest.php
@@ -29,6 +29,7 @@ class HeadersTest extends TestCase
 
         unset($GLOBALS['getallheaders_return']);
 
+        $this->markTestSkipped('Needs "adriansuter/php-autoload-override" to override a built-in PHP function');
         $this->assertEquals(['accept' => ['application/json']], $headers->getHeaders());
         $this->assertEquals(['ACCEPT' => ['application/json']], $headers->getHeaders(true));
     }
diff --git a/tests/NonBufferedBodyTest.php b/tests/NonBufferedBodyTest.php
index 146365d..4d686ae 100644
--- a/tests/NonBufferedBodyTest.php
+++ b/tests/NonBufferedBodyTest.php
@@ -50,6 +50,8 @@ class NonBufferedBodyTest extends TestCase
 
     public function testWrite()
     {
+        $this->markTestSkipped('Needs "adriansuter/php-autoload-override" to override a built-in PHP function');
+
         $ob_initial_level = ob_get_level();
 
         // Start output buffering.
@@ -79,12 +81,16 @@ class NonBufferedBodyTest extends TestCase
         $this->assertEquals('buffer content: hello world', $contents);
     }
 
+    /**
+     * @runInSeparateProcess
+     */
     public function testWithHeader()
     {
         (new Response())
             ->withBody(new NonBufferedBody())
             ->withHeader('Foo', 'Bar');
 
+        $this->markTestSkipped('Needs "adriansuter/php-autoload-override" to override a built-in PHP function');
         self::assertSame([
             [
                 'header' => 'Foo: Bar',
@@ -94,6 +100,9 @@ class NonBufferedBodyTest extends TestCase
         ], HeaderStack::stack());
     }
 
+    /**
+     * @runInSeparateProcess
+     */
     public function testWithAddedHeader()
     {
         (new Response())
@@ -101,6 +110,7 @@ class NonBufferedBodyTest extends TestCase
             ->withHeader('Foo', 'Bar')
             ->withAddedHeader('Foo', 'Baz');
 
+        $this->markTestSkipped('Needs "adriansuter/php-autoload-override" to override a built-in PHP function');
         self::assertSame([
             [
                 'header' => 'Foo: Bar',
@@ -115,6 +125,9 @@ class NonBufferedBodyTest extends TestCase
         ], HeaderStack::stack());
     }
 
+    /**
+     * @runInSeparateProcess
+     */
     public function testWithoutHeader()
     {
         (new Response())
@@ -122,6 +135,7 @@ class NonBufferedBodyTest extends TestCase
             ->withHeader('Foo', 'Bar')
             ->withoutHeader('Foo');
 
+        $this->markTestSkipped('Needs "adriansuter/php-autoload-override" to override a built-in PHP function');
         self::assertSame([], HeaderStack::stack());
     }
 
diff --git a/tests/UploadedFileTest.php b/tests/UploadedFileTest.php
index ec90abc..c1898be 100644
--- a/tests/UploadedFileTest.php
+++ b/tests/UploadedFileTest.php
@@ -237,6 +237,7 @@ class UploadedFileTest extends TestCase
 
     public function testMoveToRenameFailure()
     {
+        $this->markTestSkipped('Needs "adriansuter/php-autoload-override" to override a built-in PHP function');
         $this->expectException(RuntimeException::class);
         $this->expectExceptionMessageMatches('/^Error moving uploaded file .* to .*$/');
 
@@ -272,6 +273,7 @@ class UploadedFileTest extends TestCase
      */
     public function testMoveToSapiMoveUploadedFileFails(UploadedFile $uploadedFile)
     {
+        $this->markTestSkipped('Needs "adriansuter/php-autoload-override" to override a built-in PHP function');
         $this->expectException(RuntimeException::class);
         $this->expectExceptionMessageMatches('~Error moving uploaded file.*~');
 
@@ -353,6 +355,7 @@ class UploadedFileTest extends TestCase
 
     public function testMoveToStreamCopyFailure()
     {
+        $this->markTestSkipped('Needs "adriansuter/php-autoload-override" to override a built-in PHP function');
         $this->expectException(RuntimeException::class);
         $this->expectExceptionMessage('Error moving uploaded file  to php://output');
 
