Skip to content

Commit

Permalink
Adding test
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Apr 1, 2014
1 parent 78de26f commit 93842bb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions test/Tmdb/Tests/Api/TimezonesTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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\Api;

class TimezonesTest extends TestCase
{
/**
* @test
*/
public function shouldGetTimezones()
{
$api = $this->getApiMock();
$api->expects($this->once())
->method('get')
->with('timezones/list');

$api->getTimezones();
}

protected function getApiClass()
{
return 'Tmdb\Api\Timezones';
}
}

0 comments on commit 93842bb

Please sign in to comment.