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->getTarget()); }