Skip to content

Commit f31d605

Browse files
committed
Remove some lines and update test method name
1 parent 4320de7 commit f31d605

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

system/Autoloader/Autoloader.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ public function initialize(\Config\Autoload $config)
119119
$this->classmap = $config->classmap;
120120
}
121121

122-
//$this->addNamespace(APP_NAMESPACE, APPPATH);
123-
124122
unset($config);
125123

126124
return $this;

tests/system/Autoloader/AutoloaderTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public function setUp()
2929
'CodeIgniter' => BASEPATH,
3030
];
3131

32-
//\var_dump($config);exit;
33-
3432
$this->loader = new Autoloader();
3533
$this->loader->initialize($config)->register();
3634
}
@@ -51,7 +49,6 @@ public function testInitializeWithInvalidArguments()
5149
(new Autoloader())->initialize($config);
5250
}
5351

54-
//--------------------------------------------------------------------
5552
//--------------------------------------------------------------------
5653
// PSR4 Namespacing
5754
//--------------------------------------------------------------------
@@ -118,7 +115,6 @@ public function testMissingFile()
118115
$this->assertFalse($this->loader->loadClass('\App\Missing\Classname'));
119116
}
120117

121-
//--------------------------------------------------------------------
122118
//--------------------------------------------------------------------
123119

124120
/**
@@ -161,7 +157,7 @@ public function testAddNamespaceMultiplePathsWorks()
161157
$this->assertSame($expected, $actual);
162158
}
163159

164-
public function testAddNamespaceStingToArray()
160+
public function testAddNamespaceStringToArray()
165161
{
166162
$this->loader->addNamespace('App\Controllers', __DIR__);
167163

0 commit comments

Comments
 (0)