예제 #1
0
파일: Crew.php 프로젝트: n10ty/api
 /**
  * Returns all people
  *
  * @return Person[]
  */
 public function getCrew()
 {
     return parent::getPeople();
 }
예제 #2
0
 /**
  * @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));
 }