Example #1
0
 public function testInvalidBucketTypeThrowsException()
 {
     $this->setExpectedException(ValidationException::class);
     $guzzle = $this->buildGuzzleFromResponses([$this->buildResponseFromStub(200, [], 'authorize_account.json')]);
     $client = new Client('testId', 'testKey', ['client' => $guzzle]);
     $client->createBucket(['BucketName' => 'Test bucket', 'BucketType' => 'i am not valid']);
 }