diff options
Diffstat (limited to '109.patch')
-rw-r--r-- | 109.patch | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/109.patch b/109.patch new file mode 100644 index 0000000..3f8f164 --- /dev/null +++ b/109.patch @@ -0,0 +1,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' + ); |