Ejemplo n.º 1
0
 public function targetWithSegmentParametersAndConstantsMixed()
 {
     $fixture = new RestRequest('/repos/{user}/{repo}/issues/{id}');
     $fixture->addSegment('user', 'thekid');
     $fixture->addSegment('repo', 'xp-framework');
     $fixture->addSegment('id', 1);
     $this->assertEquals('/repos/thekid/xp-framework/issues/1', $fixture->targetUrl(new URL('http://test'))->getPath());
 }