/** * testSortLexicographically * * @return void * @author Rob Mcvey **/ public function testSortLexicographically() { $this->AmazonS3->amazonHeaders = array('X-Amz-Meta-ReviewedBy' => '*****@*****.**', 'X-Amz-CUSTOM' => 'chicken-soup'); $this->AmazonS3->sortLexicographically(); $result = $this->AmazonS3->amazonHeaders; $expected = array('X-Amz-CUSTOM' => 'chicken-soup', 'X-Amz-Meta-ReviewedBy' => '*****@*****.**'); $this->assertSame($expected, $result); // $this->AmazonS3->amazonHeaders = array('X-Amz-Meta-ReviewedBy' => '*****@*****.**', 'x-amz-acl' => 'public-read'); $this->AmazonS3->sortLexicographically(); $result = $this->AmazonS3->amazonHeaders; $expected = array('x-amz-acl' => 'public-read', 'X-Amz-Meta-ReviewedBy' => '*****@*****.**'); $this->assertSame($expected, $result); }