File: 0001-group-network-for-test-failing-without-network.patch

package info (click to toggle)
php-email-validator 3.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 692 kB
  • sloc: php: 3,495; xml: 29; makefile: 20
file content (41 lines) | stat: -rw-r--r-- 1,352 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Thu, 19 May 2016 22:23:26 -0400
Subject: @group network for test failing without network

Forwarded: no
---
 tests/EmailValidator/Validation/DNSCheckValidationTest.php | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/EmailValidator/Validation/DNSCheckValidationTest.php b/tests/EmailValidator/Validation/DNSCheckValidationTest.php
index ed9dd84..0a0e1c0 100644
--- a/tests/EmailValidator/Validation/DNSCheckValidationTest.php
+++ b/tests/EmailValidator/Validation/DNSCheckValidationTest.php
@@ -60,6 +60,7 @@ class DNSCheckValidationTest extends TestCase
 
     /**
      * @dataProvider validEmailsProvider
+     * @group network
      */
     public function testValidDNS($validEmail)
     {
@@ -84,6 +85,9 @@ class DNSCheckValidationTest extends TestCase
         $this->assertEquals($expectedError, $validation->getError());
     }
 
+    /**
+     * @group network
+     */
     public function testDomainAcceptsNoMailError()
     {
         $validation = new DNSCheckValidation();
@@ -102,6 +106,9 @@ class DNSCheckValidationTest extends TestCase
         $this->assertEquals($expectedWarnings, $validation->getWarnings());
     }
 
+    /**
+     * @group network
+     */
     public function testNoDNSError()
     {
         $validation = new DNSCheckValidation();