File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,9 +260,6 @@ public function loadClassmap(string $class): void
260260 */
261261 public function loadClass (string $ class ): void
262262 {
263- $ class = trim ($ class , '\\' );
264- $ class = str_ireplace ('.php ' , '' , $ class );
265-
266263 $ this ->loadInNamespace ($ class );
267264 }
268265
Original file line number Diff line number Diff line change @@ -146,15 +146,6 @@ public function testMatchesWithPrecedingSlash(): void
146146 $ this ->assertSame ($ expected , $ actual );
147147 }
148148
149- public function testMatchesWithFileExtension (): void
150- {
151- /** @var Autoloader&MockObject $classLoader */
152- $ classLoader = $ this ->getMockBuilder (Autoloader::class)->onlyMethods (['loadInNamespace ' ])->getMock ();
153- $ classLoader ->expects ($ this ->once ())->method ('loadInNamespace ' )->with (Home::class);
154-
155- $ classLoader ->loadClass ('\App\Controllers\Home.php ' );
156- }
157-
158149 public function testMissingFile (): void
159150 {
160151 $ this ->assertFalse (($ this ->classLoader )('\App\Missing\Classname ' ));
You can’t perform that action at this time.
0 commit comments