コード例 #1
0
ファイル: SectionTest.php プロジェクト: visor/nano
 public function testCreateShouldReturnRegExpSectionWhenPrefixPassed()
 {
     self::assertInstanceOf('\\Nano\\Route\\Section\\RegExp', \Nano\Route\Section\Common::create('~foo'));
 }
コード例 #2
0
ファイル: StaticLocation.php プロジェクト: visor/nano
 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);
 }