Esempio n. 1
0
 public function testCreateWithSignKey()
 {
     $urlBuilder = UrlBuilderFactory::create('/img', 'example');
     $this->assertEquals('/img/image.jpg?s=2aed6cf637d60951a66200eda3f5e568', $urlBuilder->getUrl('image.jpg'));
 }
Esempio n. 2
0
 public function testCreateWithSignKeyWithLeadingSlash()
 {
     $urlBuilder = UrlBuilderFactory::create('/img', 'example-sign-key');
     $this->assertEquals('/img/image.jpg?s=56020c3dc5f68487c14510343c3e2c43', $urlBuilder->getUrl('image.jpg'));
 }