示例#1
0
 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);
 }