From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Wed, 30 Oct 2024 08:53:23 +0100
Subject: Skip tests requiring phar.readonly="Off"

Forwarded: not-needed
---
 tests/NotificationTest.php       | 2 ++
 tests/Util/PharExtractorTest.php | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/tests/NotificationTest.php b/tests/NotificationTest.php
index 451f2e1..c86085a 100644
--- a/tests/NotificationTest.php
+++ b/tests/NotificationTest.php
@@ -19,6 +19,8 @@ class NotificationTest extends TestCase
 {
     public function testItExtractsIconFromPhar()
     {
+        $this->markTestSkipped('This test require phar.readonly="Off".');
+
         $key = (string) random_int(0, 10000);
         $iconContent = $key;
         $rootPackage = \dirname(__DIR__);
diff --git a/tests/Util/PharExtractorTest.php b/tests/Util/PharExtractorTest.php
index e6a99b3..0bbb55b 100644
--- a/tests/Util/PharExtractorTest.php
+++ b/tests/Util/PharExtractorTest.php
@@ -27,6 +27,8 @@ class PharExtractorTest extends TestCase
 
     public function testExtractFile()
     {
+        $this->markTestSkipped('This test require phar.readonly="Off".');
+
         $key = uniqid('', true);
         $pharPath = $this->getTestDir() . '/phar-extractor-' . $key . '.phar';
         $relativeFilePath = 'path/to/file-' . $key . '.txt';
@@ -44,6 +46,8 @@ class PharExtractorTest extends TestCase
 
     public function testExtractFileDoesntOverwriteExistingFileIfNotSpecified()
     {
+        $this->markTestSkipped('This test require phar.readonly="Off".');
+
         $key = uniqid('', true);
         $pharPath = $this->getTestDir() . '/phar-extractor-no-overwrite-' . $key . '.phar';
         $relativeFilePath = 'path/to/file-' . $key . '.txt';
@@ -66,6 +70,8 @@ class PharExtractorTest extends TestCase
 
     public function testExtractFileOverwritesExistingFileIfSpecified()
     {
+        $this->markTestSkipped('This test require phar.readonly="Off".');
+
         $key = uniqid('', true);
         $pharPath = $this->getTestDir() . '/phar-extractor-overwrite-' . $key . '.phar';
         $relativeFilePath = 'path/to/file-' . $key . '.txt';
