PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` assertInstanceOf('League\Glide\Urls\UrlBuilder', new UrlBuilder()); } public function testGetUrl() { $urlBuilder = new UrlBuilder('http://example.com'); $this->assertEquals( 'http://example.com/image.jpg?w=100', $urlBuilder->getUrl('image.jpg', ['w' => '100']) ); } public function testGetUrlWithNoDomain() { $urlBuilder = new UrlBuilder(); $this->assertEquals( '/image.jpg?w=100', $urlBuilder->getUrl('image.jpg', ['w' => '100']) ); } public function testGetUrlWithDomainAndPort() { $urlBuilder = new UrlBuilder('http://localhost:8000'); $this->assertEquals( 'http://localhost:8000/image.jpg?w=100', $urlBuilder->getUrl('image.jpg', ['w' => '100']) ); } public function testGetUrlWithProtocolRelativeDomain() { $urlBuilder = new UrlBuilder('//localhost:8000'); $this->assertEquals( '//localhost:8000/image.jpg?w=100', $urlBuilder->getUrl('image.jpg', ['w' => '100']) ); } public function testGetUrlWithToken() { $urlBuilder = new UrlBuilder('http://example.com', new Signature('example-sign-key')); $this->assertEquals( 'http://example.com/image.jpg?w=100&s=e1b69d4b79ecf33283128819fd008906', $urlBuilder->getUrl('image.jpg', ['w' => '100']) ); } public function testGetInvalidUrl() { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Not a valid path.'); $urlBuilder = new UrlBuilder(':80'); $urlBuilder->getUrl('image.jpg'); } }