public function testThatItWorks()
 {
     $client = Mockery::mock(stdClass::class . ", " . ClientInterface::class);
     $request = Mockery::mock(stdClass::class . ", " . RequestInterface::class);
     $response = Mockery::mock(stdClass::class . ", " . ResponseInterface::class);
     $client->shouldReceive("createRequest")->once()->andReturn($request);
     $response->shouldReceive("getStatusCode")->once()->andReturn(200);
     $response->shouldReceive("json")->once()->andReturn([]);
     $client->shouldReceive("send")->andReturn($response);
     $clientId = getenv("CLIENT_ID");
     $response = (new History('rolle', Type::movies(), get_token()))->make($clientId, $client);
     $this->assertInternalType("object", $response);
 }
 public function testRequestWithoutToken()
 {
     $response = (new History('megawubs', Type::movies()))->make(get_client_id(), TraktHttpClient::make());
     $this->assertInternalType("object", $response);
 }