forked from php-tmdb/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31e605e
commit f73fc2a
Showing
13 changed files
with
377 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* This file is part of the Tmdb PHP API created by Michael Roterman. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @package Tmdb | ||
* @author Michael Roterman <[email protected]> | ||
* @copyright (c) 2013, Michael Roterman | ||
* @version 0.0.1 | ||
*/ | ||
namespace Tmdb\Tests\Model; | ||
|
||
use Tmdb\Model\Movie; | ||
|
||
class MovieTest extends TestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
public function shouldConstructMovie() | ||
{ | ||
$person = new Movie(); | ||
|
||
$this->assertInstancesOf( | ||
$person, | ||
array( | ||
/** Constructor */ | ||
'getGenres' => 'Tmdb\Model\Collection\Genres', | ||
'getProductionCompanies' => 'Tmdb\Model\Common\GenericCollection', | ||
'getProductionCountries' => 'Tmdb\Model\Common\GenericCollection', | ||
'getSpokenLanguages' => 'Tmdb\Model\Common\GenericCollection', | ||
'getAlternativeTitles' => 'Tmdb\Model\Common\GenericCollection', | ||
'getChanges' => 'Tmdb\Model\Common\GenericCollection', | ||
'getCredits' => 'Tmdb\Model\Collection\Credits', | ||
'getImages' => 'Tmdb\Model\Collection\Images', | ||
'getKeywords' => 'Tmdb\Model\Common\GenericCollection', | ||
'getLists' => 'Tmdb\Model\Common\GenericCollection', | ||
'getReleases' => 'Tmdb\Model\Common\GenericCollection', | ||
'getSimilarMovies' => 'Tmdb\Model\Common\GenericCollection', | ||
'getTrailers' => 'Tmdb\Model\Common\GenericCollection', | ||
'getTranslations' => 'Tmdb\Model\Common\GenericCollection', | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* This file is part of the Tmdb PHP API created by Michael Roterman. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @package Tmdb | ||
* @author Michael Roterman <[email protected]> | ||
* @copyright (c) 2013, Michael Roterman | ||
* @version 0.0.1 | ||
*/ | ||
namespace Tmdb\Tests\Model; | ||
|
||
use Tmdb\Model\Person; | ||
|
||
class GenreTest extends TestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
public function shouldConstructGenres() | ||
{ | ||
$person = new Person(); | ||
|
||
$this->assertInstancesOf( | ||
$person, | ||
array( | ||
'getCredits' => 'Tmdb\Model\Collection\Credits', | ||
'getImages' => 'Tmdb\Model\Collection\Images', | ||
'getChanges' => 'Tmdb\Model\Common\GenericCollection' | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* This file is part of the Tmdb PHP API created by Michael Roterman. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @package Tmdb | ||
* @author Michael Roterman <[email protected]> | ||
* @copyright (c) 2013, Michael Roterman | ||
* @version 0.0.1 | ||
*/ | ||
namespace Tmdb\Tests\Model; | ||
|
||
use Tmdb\Tests\TestCase as Base; | ||
|
||
abstract class TestCase extends Base | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/** | ||
* This file is part of the Tmdb PHP API created by Michael Roterman. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @package Tmdb | ||
* @author Michael Roterman <[email protected]> | ||
* @copyright (c) 2013, Michael Roterman | ||
* @version 0.0.1 | ||
*/ | ||
namespace Tmdb\Tests\Model\Tv; | ||
|
||
use Tmdb\Tests\Model\TestCase; | ||
use Tmdb\Model\Tv\Episode; | ||
|
||
class TvEpisodeTest extends TestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
public function shouldConstructTvEpisode() | ||
{ | ||
$episode = new Episode(); | ||
|
||
$this->assertInstancesOf( | ||
$episode, | ||
array( | ||
'getCredits' => 'Tmdb\Model\Collection\Credits', | ||
'getExternalIds' => 'Tmdb\Model\Tv\ExternalIds', | ||
'getImages' => 'Tmdb\Model\Collection\Images', | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* This file is part of the Tmdb PHP API created by Michael Roterman. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @package Tmdb | ||
* @author Michael Roterman <[email protected]> | ||
* @copyright (c) 2013, Michael Roterman | ||
* @version 0.0.1 | ||
*/ | ||
namespace Tmdb\Tests\Model\Tv; | ||
|
||
use Tmdb\Tests\Model\TestCase; | ||
use Tmdb\Model\Tv\Season; | ||
|
||
class TvSeasonTest extends TestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
public function shouldConstructTvSeason() | ||
{ | ||
$season = new Season(); | ||
|
||
$this->assertInstancesOf( | ||
$season, | ||
array( | ||
'getCredits' => 'Tmdb\Model\Collection\Credits', | ||
'getExternalIds' => 'Tmdb\Model\Tv\ExternalIds', | ||
'getImages' => 'Tmdb\Model\Collection\Images', | ||
'getEpisodes' => 'Tmdb\Model\Common\GenericCollection', | ||
) | ||
); | ||
} | ||
} |
Oops, something went wrong.