1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
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 fa13a0c..b4ba569 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');
|