/** * Test Ensure a request with a different exception type is thrown as an exception * * @expectedException \Exception */ public function testEnsureGetNonRequestExceptionIsThrownAsAnException() { $url = 'droplets/'; $options = ['headers' => ['Content-type' => 'application/json']]; $this->mockClient->expects($this->once())->method('get')->with($url, $options)->will($this->throwException(new \Exception())); $client = new Client(); $client->setHttpClient($this->mockClient); $client->get($url, $options); }