示例#1
0
文件: PathTest.php 项目: mvc5/tests
 /**
  *
  */
 function test_partial_match_with_child_routes()
 {
     $event = new Event();
     $route = new Route([Arg::REGEX => 'foo', Arg::CHILDREN => ['bar' => []]]);
     $path = new Path();
     $request = new Request(new Mvc5Request([Arg::URI => [Arg::PATH => 'foobar']]));
     $this->assertFalse($event->stopped());
     $this->assertEquals($request, $path($event, $request, $route));
     $this->assertTrue($event->stopped());
 }
示例#2
0
文件: Event.php 项目: mvc5/tests
 /**
  * @return array
  */
 function args()
 {
     return parent::args();
 }