Skip to content

Commit

Permalink
Add test for url being case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
eddturtle committed Nov 25, 2016
1 parent 3503adb commit 93cdc4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/SignatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public function testBuildUrl($object)
{
$url = $object->getFormUrl();
$this->assertEquals("//" . "s3-" . $this->testRegion . ".amazonaws.com/" . urlencode($this->testBucket), $url);

// S3 Url is case-sensitive, make sure casing is preserved
$url = (new Signature('key', 'secret', 'CAPS_BUCKET', 'eu-west-1'))->getFormUrl();
$this->assertEquals("//s3-eu-west-1.amazonaws.com/CAPS_BUCKET", $url);
}

public function testBuildUrlForUsEast()
Expand Down

0 comments on commit 93cdc4e

Please sign in to comment.