public function get($projectIdOrKey) { $ret = $this->exec($this->uri . "/{$projectIdOrKey}", null); $this->log->addInfo('Result=' . $ret); $prj = $this->json_mapper->map(json_decode($ret), new Project()); return $prj; }
public function testGetProject() { //$this->markTestIncomplete(); try { $proj = new ProjectService(); $p = $proj->get('TEST'); Dumper::dump($p); foreach ($p->components as $c) { echo 'COM : ' . $c->name . "\n"; } } catch (HTTPException $e) { $this->assertTrue(false, $e->getMessage()); } }