Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldBeFunctional()
 {
     $alsoKnownAs = $this->person->getAlsoKnownAs();
     $this->assertEquals(false, $this->person->getAdult());
     $this->assertEquals(true, empty($alsoKnownAs));
     $this->assertEquals('external', $this->person->getBiography());
     $this->assertInstanceOf('\\DateTime', $this->person->getBirthday());
     $this->assertEquals(false, $this->person->getDeathday());
     $this->assertEquals('', $this->person->getHomepage());
     $this->assertEquals(33, $this->person->getId());
     //@todo
     //$this->assertEquals('nm0000641', $this->person->getImdbId());
     $this->assertEquals('Gary Sinise', $this->person->getName());
     $this->assertEquals('Blue Island, Illinois, USA', $this->person->getPlaceOfBirth());
     //@todo
     //$this->assertEquals(1.99498054250796, $this->person->getPopularity());
     $this->assertInstanceOf('Tmdb\\Model\\Image\\ProfileImage', $this->person->getProfileImage());
     $this->assertEquals('/h9YwlLHANaQzaTVkVwxnxLbvCY4.jpg', $this->person->getProfilePath());
     $this->assertInstanceOf('Tmdb\\Model\\Collection\\Images', $this->person->getImages());
     $this->assertInstanceOf('Tmdb\\Model\\Common\\GenericCollection', $this->person->getChanges());
     $this->assertInstanceOf('Tmdb\\Model\\Collection\\CreditsCollection\\CombinedCredits', $this->person->getCombinedCredits());
     $this->assertInstanceOf('Tmdb\\Model\\Collection\\CreditsCollection\\MovieCredits', $this->person->getMovieCredits());
     $this->assertInstanceOf('Tmdb\\Model\\Collection\\CreditsCollection\\TvCredits', $this->person->getTvCredits());
 }