/** * Retrieve a crew member from the collection * * @param $id * @return Person */ public function getCrewMember($id) { return parent::getPerson($id); }
/** * @test */ public function shouldGetAndSet() { $this->assertEquals(count($this->people), count($this->collection->getPeople())); $this->assertEquals('james blunt', $this->collection->getPerson(1)->getName()); $this->assertEquals(null, $this->collection->getPerson(3)); }