Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.138.105.128
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
league /
glide /
tests /
Urls /
Delete
Unzip
Name
Size
Permission
Date
Action
UrlBuilderFactoryTest.php
966
B
-rw-r--r--
2020-11-05 09:00
UrlBuilderTest.php
1.9
KB
-rw-r--r--
2020-11-05 09:00
Save
Rename
<?php namespace League\Glide\Urls; use League\Glide\Signatures\Signature; use PHPUnit\Framework\TestCase; class UrlBuilderTest extends TestCase { public function testCreateInstance() { $this->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'); } }