コード例 #1
0
 public function testSummary()
 {
     $client = mock_client(200, movieJson());
     $auth = mock_auth();
     $trakt = new Trakt($auth, $client);
     $res = $trakt->movies->summary(get_token(), $this->id);
     $this->assertInstanceOf(Movie::class, $res);
 }
コード例 #2
0
/**
 * A helper function to get a movie object
 *
 * @param ClientInterface $client
 * @return Movie
 */
function movie(ClientInterface $client)
{
    return new Movie(json_decode(movieJson()), get_client_id(), get_token(), $client);
}