⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
dnc
/
@core
/
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') ); } }