From 97bc23d8306a6b3e57f7c923f6b19bc433846763 Mon Sep 17 00:00:00 2001 From: Christoph Potas Date: Fri, 29 Jun 2018 08:55:18 +0200 Subject: [PATCH 1/2] ~ remove lower case access Signed-off-by: Christoph Potas --- system/Config/Config.php | 2 +- tests/system/Config/ConfigTest.php | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/system/Config/Config.php b/system/Config/Config.php index 0cf79dd3e7..0a3c0c204f 100644 --- a/system/Config/Config.php +++ b/system/Config/Config.php @@ -70,7 +70,7 @@ class Config $class = substr($name, $pos + 1); } - $class = strtolower($class); + //$class = strtolower($class); if (! $getShared) { diff --git a/tests/system/Config/ConfigTest.php b/tests/system/Config/ConfigTest.php index b1e8397fff..ea08b26e98 100644 --- a/tests/system/Config/ConfigTest.php +++ b/tests/system/Config/ConfigTest.php @@ -7,12 +7,10 @@ class ConfigTest extends \CIUnitTestCase public function testCreateSingleInstance() { - $Config = Config::get('email', false); - $UpperConfig = Config::get('Email', false); + $Config = Config::get('Email', false); $NamespaceConfig = Config::get('Config\\Email', false); $this->assertInstanceOf(Email::class, $Config); - $this->assertInstanceOf(Email::class, $UpperConfig); $this->assertInstanceOf(Email::class, $NamespaceConfig); } @@ -25,7 +23,7 @@ class ConfigTest extends \CIUnitTestCase public function testCreateSharedInstance() { - $Config = Config::get('email' ); + $Config = Config::get('Email' ); $Config2 = Config::get('Config\\Email'); $this->assertTrue($Config === $Config2); @@ -33,7 +31,7 @@ class ConfigTest extends \CIUnitTestCase public function testCreateNonConfig() { - $Config = Config::get('constants', false); + $Config = Config::get('Constants', false); $this->assertNull($Config); } From c7ed960b8bf9f248beee400768cbc9619b95b657 Mon Sep 17 00:00:00 2001 From: puschie286 Date: Mon, 2 Jul 2018 08:58:53 +0200 Subject: [PATCH 2/2] Update Config.php - remove comment --- system/Config/Config.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/system/Config/Config.php b/system/Config/Config.php index 0a3c0c204f..8cef1942d5 100644 --- a/system/Config/Config.php +++ b/system/Config/Config.php @@ -70,8 +70,6 @@ class Config $class = substr($name, $pos + 1); } - //$class = strtolower($class); - if (! $getShared) { return self::createClass($name);