diff options
Diffstat (limited to '8.patch')
-rw-r--r-- | 8.patch | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -0,0 +1,28 @@ +From 353a7eb58cb1d159979d8a5d181324ef4a8b91d8 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Thu, 9 Jan 2020 14:13:48 +0100 +Subject: [PATCH] rewrite testRegisteringNewScheme for 7.4 + +--- + test/UriFactoryTest.php | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/test/UriFactoryTest.php b/test/UriFactoryTest.php +index 9828d1b..a9cbf7d 100644 +--- a/test/UriFactoryTest.php ++++ b/test/UriFactoryTest.php +@@ -29,11 +29,11 @@ class UriFactoryTest extends TestCase + */ + public function testRegisteringNewScheme($scheme, $class) + { +- $this->assertAttributeNotContains($class, 'schemeClasses', '\Laminas\Uri\UriFactory'); ++ $this->assertNull(UriFactory::getRegisteredSchemeClass($scheme)); + UriFactory::registerScheme($scheme, $class); +- $this->assertAttributeContains($class, 'schemeClasses', '\Laminas\Uri\UriFactory'); ++ $this->assertEquals(UriFactory::getRegisteredSchemeClass($scheme), $class); + UriFactory::unregisterScheme($scheme); +- $this->assertAttributeNotContains($class, 'schemeClasses', '\Laminas\Uri\UriFactory'); ++ $this->assertNull(UriFactory::getRegisteredSchemeClass($scheme)); + } + + /** |