Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TimezonesTest extends TestCase |
||
11 | { |
||
12 | public function testIndex() |
||
13 | { |
||
14 | $client = $this->getClientWithMockedGet('timezones-index.json'); |
||
15 | |||
16 | $client = new TimezoneClient($this->getConfig(), $client); |
||
17 | $list = $client->index(); |
||
18 | |||
19 | foreach ($list as $continent) { |
||
20 | $this->assertInstanceOf(Timezone::class, $continent); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | public function testShow() |
||
25 | { |
||
26 | $client = $this->getClientWithMockedGet('timezones-show.json'); |
||
27 | |||
28 | $client = new TimezoneClient($this->getConfig(), $client); |
||
29 | $entry = $client->show(240); |
||
30 | |||
31 | $this->assertInstanceOf(Timezone::class, $entry); |
||
32 | } |
||
33 | |||
34 | public function testByLatLng() |
||
42 | } |
||
43 | } |
||
44 |