コード例 #1
0
ファイル: RouteTest.php プロジェクト: Mosaic/Mosaic
 public function test_uri_is_prepended_with_slash()
 {
     $route = new Route(['GET'], '/', function () {
     });
     $this->assertEquals('/', $route->uri());
     $route = new Route(['GET'], 'test', function () {
     });
     $this->assertEquals('/test', $route->uri());
     $route = new Route(['GET'], '/test', function () {
     });
     $this->assertEquals('/test', $route->uri());
 }