public function testEmptyArrayWithNoBuckets() { $guzzle = $this->buildGuzzleFromResponses([$this->buildResponseFromStub(200, [], 'authorize_account.json'), $this->buildResponseFromStub(200, [], 'list_buckets_0.json')]); $client = new Client('testId', 'testKey', ['client' => $guzzle]); $buckets = $client->listBuckets(); $this->assertInternalType('array', $buckets); $this->assertCount(0, $buckets); }