summaryrefslogtreecommitdiffstats
path: root/109.patch
blob: 3f8f164bc9bcb9c7d16acd165d7254f14fffc8c6 (plain)
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
From 4c0a267e17dba6e205079c397a05026c887b6352 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 30 Sep 2020 09:31:32 +0200
Subject: [PATCH] relax test for 8.0.0RC1

---
 tests/MaxMind/Db/Test/Reader/MetadataTest.php | 2 +-
 tests/MaxMind/Db/Test/ReaderTest.php          | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/MaxMind/Db/Test/Reader/MetadataTest.php b/tests/MaxMind/Db/Test/Reader/MetadataTest.php
index af12be9..082283d 100644
--- a/tests/MaxMind/Db/Test/Reader/MetadataTest.php
+++ b/tests/MaxMind/Db/Test/Reader/MetadataTest.php
@@ -44,7 +44,7 @@ public function testConstructor(): void
     public function testTooManyConstructorArgs(): void
     {
         $this->expectException(ArgumentCountError::class);
-        $this->expectExceptionMessage('MaxMind\Db\Reader\Metadata::__construct() expects exactly 1 parameter, 2 given');
+        $this->expectExceptionMessage('MaxMind\Db\Reader\Metadata::__construct() expects exactly 1');
         new Metadata([], 1);
     }
 
diff --git a/tests/MaxMind/Db/Test/ReaderTest.php b/tests/MaxMind/Db/Test/ReaderTest.php
index bb90854..cb456c7 100644
--- a/tests/MaxMind/Db/Test/ReaderTest.php
+++ b/tests/MaxMind/Db/Test/ReaderTest.php
@@ -302,7 +302,7 @@ public function testNonDatabase(): void
     public function testTooManyConstructorArgs(): void
     {
         $this->expectException(ArgumentCountError::class);
-        $this->expectExceptionMessage('MaxMind\Db\Reader::__construct() expects exactly 1 parameter, 2 given');
+        $this->expectExceptionMessage('MaxMind\Db\Reader::__construct() expects exactly 1');
         new Reader('README.md', 1);
     }
 
@@ -318,7 +318,7 @@ public function testNoConstructorArgs(): void
     public function testTooManyGetArgs(): void
     {
         $this->expectException(ArgumentCountError::class);
-        $this->expectExceptionMessage('MaxMind\Db\Reader::get() expects exactly 1 parameter, 2 given');
+        $this->expectExceptionMessage('MaxMind\Db\Reader::get() expects exactly 1');
         $reader = new Reader(
             'tests/data/test-data/MaxMind-DB-test-decoder.mmdb'
         );
@@ -340,7 +340,7 @@ public function testNoGetArgs(): void
     public function testMetadataArgs(): void
     {
         $this->expectException(ArgumentCountError::class);
-        $this->expectExceptionMessage('MaxMind\Db\Reader::metadata() expects exactly 0 parameters, 1 given');
+        $this->expectExceptionMessage('MaxMind\Db\Reader::metadata() expects exactly 0');
         $reader = new Reader(
             'tests/data/test-data/MaxMind-DB-test-decoder.mmdb'
         );
@@ -360,7 +360,7 @@ public function testClose(): void
     public function testCloseArgs(): void
     {
         $this->expectException(ArgumentCountError::class);
-        $this->expectExceptionMessage('MaxMind\Db\Reader::close() expects exactly 0 parameters, 1 given');
+        $this->expectExceptionMessage('MaxMind\Db\Reader::close() expects exactly 0');
         $reader = new Reader(
             'tests/data/test-data/MaxMind-DB-test-decoder.mmdb'
         );