-
-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathSeasonTest.php
More file actions
56 lines (47 loc) · 1.36 KB
/
SeasonTest.php
File metadata and controls
56 lines (47 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?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 <michael@wtfz.net>
* @copyright (c) 2013, Michael Roterman
* @version 4.0.0
*/
namespace Tmdb\Tests\Model\Tv;
use stdClass;
use Tmdb\Model\Tv\Season;
use Tmdb\Tests\Model\TestCase;
class SeasonTest extends TestCase
{
/**
* @test
*/
public function shouldConstructTvSeason()
{
$season = new Season();
$this->assertInstancesOf(
$season,
[
'getCredits' => 'Tmdb\Model\Collection\CreditsCollection',
'getExternalIds' => 'Tmdb\Model\Common\ExternalIds',
'getImages' => 'Tmdb\Model\Collection\Images',
'getEpisodes' => 'Tmdb\Model\Common\GenericCollection',
'getVideos' => 'Tmdb\Model\Collection\Videos',
'getTranslations' => 'Tmdb\Model\Common\GenericCollection',
]
);
}
/**
* @test
*/
public function shouldBeAbleToOverrideDefaultCollections()
{
$season = new Season();
$class = new stdClass();
$season->setCredits($class);
$this->assertInstanceOf('stdClass', $season->getCredits());
}
}