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); }
/** * 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); }