File: 0001-Skip-tests-requiring-phar.readonly-Off.patch

package info (click to toggle)
php-jolicode-jolinotif 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 812 kB
  • sloc: php: 1,871; makefile: 19; ansic: 11
file content (54 lines) | stat: -rw-r--r-- 2,138 bytes parent folder | download
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
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 a711bee..5baa88e 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 2f255a0..e0e0301 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';