/** * */ 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()); }
/** * @return array */ function args() { return parent::args(); }