public function twoSegments() { $fixture = new RestRequest('/issues'); $fixture->addSegment('user', 'thekid'); $fixture->addSegment('repo', 'xp-framework'); $this->assertEquals(['user' => 'thekid', 'repo' => 'xp-framework'], $fixture->getSegments()); }