public function testDeletingNonExistentFileThrowsException() { $this->setExpectedException(BadJsonException::class); $guzzle = $this->buildGuzzleFromResponses([$this->buildResponseFromStub(200, [], 'authorize_account.json'), $this->buildResponseFromStub(400, [], 'delete_file_non_existent.json')]); $client = new Client('testId', 'testKey', ['client' => $guzzle]); $this->assertTrue($client->deleteFile(['FileId' => 'fileId', 'FileName' => 'fileName'])); }