public function testHelperBuildSignedURLWithHashSetterParamsHttps()
 {
     $uh = new URLHelper("imgix-library-secure-test-source.imgix.net", "dog.jpg", "https", "EHFQXiZhxP4wA2c4");
     $uh->setParameter("w", 500);
     $this->assertEquals("https://imgix-library-secure-test-source.imgix.net/dog.jpg?w=500&s=e4eb402d12bbdf267bf0fc5588170d56", $uh->getURL());
 }
Example #2
0
 public function testHelperBuildSignedURLWithHashSetterParamsHttps()
 {
     $uh = new URLHelper("securejackangers.imgix.net", "chester.png", "https", "Q61NvXIy");
     $uh->setParameter("w", 500);
     $this->assertEquals("https://securejackangers.imgix.net/chester.png?w=500&s=0ddf97bf1a266a1da6c30c6ce327f917", $uh->getURL());
 }