public function testGettingNonExistentFileThrowsException() { $this->setExpectedException(BadJsonException::class); $guzzle = $this->buildGuzzleFromResponses([$this->buildResponseFromStub(200, [], 'authorize_account.json'), $this->buildResponseFromStub(400, [], 'get_file_non_existent.json')]); $client = new Client('testId', 'testKey', ['client' => $guzzle]); $client->getFile(['FileId' => 'fileId']); }