Skip to content

Commit

Permalink
Fixing for 5.3 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Jul 11, 2014
1 parent dad601f commit c2eb767
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Aws/Tests/S3/S3ClientTest.php
Expand Up @@ -81,11 +81,11 @@ public function testFactoryInitializesClient()
*/
public function testCreatesPresignedUrls()
{
$client = S3Client::factory([
$client = S3Client::factory(array(
'region' => 'us-east-1',
'key' => 'foo',
'secret' => 'bar'
]);
));
$request = $client->get('/foobar');
$original = (string) $request;
$url = $client->createPresignedUrl($request, 1342138769);
Expand All @@ -100,11 +100,11 @@ public function testCreatesPresignedUrls()
*/
public function testCreatesPresignedUrlsWithSpecialCharacters()
{
$client = S3Client::factory([
$client = S3Client::factory(array(
'region' => 'us-east-1',
'key' => 'foo',
'secret' => 'bar'
]);
));
$request = $client->get('/foobar test: abc/+%.a');
$url = $client->createPresignedUrl($request, 1342138769);
$this->assertContains('https://s3.amazonaws.com/foobar%20test%3A%20abc/%2B%25.a?AWSAccessKeyId=', $url);
Expand Down

0 comments on commit c2eb767

Please sign in to comment.