We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f171b08 commit 8967217Copy full SHA for 8967217
tests/system/Router/RouteCollectionTest.php
@@ -12,6 +12,7 @@
12
namespace CodeIgniter\Router;
13
14
use CodeIgniter\Config\Services;
15
+use CodeIgniter\controller;
16
use CodeIgniter\Exceptions\PageNotFoundException;
17
use CodeIgniter\Test\CIUnitTestCase;
18
use Config\Modules;
@@ -237,7 +238,7 @@ public function testAddRecognizesCustomNamespaces()
237
238
$routes->add('home', 'controller');
239
240
$expects = [
- 'home' => '\CodeIgniter\controller',
241
+ 'home' => '\\' . controller::class,
242
];
243
244
$routes = $routes->getRoutes();
0 commit comments