/** * @test */ public function shouldBeAbleToOverrideAdapter() { $httpClient = new HttpClient(['host' => 'wtfz.net', 'adapter' => $this->getMock('\\Tmdb\\HttpClient\\Adapter\\AdapterInterface'), 'event_dispatcher' => new EventDispatcher(), 'session_token' => null, 'cache' => null, 'log' => null]); $this->assertInstanceOf('Tmdb\\HttpClient\\Adapter\\AdapterInterface', $httpClient->getAdapter()); }