Example #1
0
 function testFind()
 {
     try {
         Route::push('HelloWorld', '')->defaults(array('controller' => 'text'));
         $this->assertSame('HelloWorld', Route::findByUri('')->name());
     } catch (MiException $e) {
         $this->fail($e->getMessage());
     }
 }