File: 0002-Skip-tests-requiring-internet-access.patch

package info (click to toggle)
php-faker 1.20.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,704 kB
  • sloc: php: 115,692; xml: 213; makefile: 49
file content (23 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Robin Gustafsson <robin@rgson.se>
Date: Thu, 14 Apr 2022 14:47:18 +0200
Subject: Skip tests requiring internet access

Forwarded: not-needed
---
 test/Faker/Provider/ImageTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/Faker/Provider/ImageTest.php b/test/Faker/Provider/ImageTest.php
index 8b3897b..0c01719 100644
--- a/test/Faker/Provider/ImageTest.php
+++ b/test/Faker/Provider/ImageTest.php
@@ -176,6 +176,9 @@ final class ImageTest extends TestCase
 
     private static function checkUrlConnection(string $url)
     {
+        self::markTestSkipped('Internet access is disallowed.');
+        return;
+
         $curlPing = curl_init($url);
         curl_setopt($curlPing, CURLOPT_TIMEOUT, 5);
         curl_setopt($curlPing, CURLOPT_CONNECTTIMEOUT, 5);