コード例 #1
0
 public function testAddPrefixesNamespacesWithBackslash()
 {
     $collection = new RouteCollection();
     $collection->setDefaultNamespace('CodeIgniter');
     $collection->add('home', 'controller');
     $expects = ['home' => '\\CodeIgniter\\controller'];
     $routes = $collection->getRoutes();
     $this->assertEquals($expects, $routes);
 }