예제 #1
0
파일: SectionTest.php 프로젝트: visor/nano
 public function testCreateShouldReturnRegExpSectionWhenPrefixPassed()
 {
     self::assertInstanceOf('\\Nano\\Route\\Section\\RegExp', \Nano\Route\Section\Common::create('~foo'));
 }
예제 #2
0
 public function __construct($location)
 {
     parent::__construct(mb_strToLower($location, 'UTF-8'));
 }
예제 #3
0
파일: RegExp.php 프로젝트: visor/nano
 public function __construct($location)
 {
     parent::__construct('/^' . $location . '/i');
 }
예제 #4
0
파일: Root.php 프로젝트: visor/nano
 public function __construct()
 {
     parent::__construct(null);
 }