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 : 18.225.72.113
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
psy /
psysh /
test /
Reflection /
Delete
Unzip
Name
Size
Permission
Date
Action
ReflectionClassConstantTest.php
2.3
KB
-rw-r--r--
2018-10-13 09:00
ReflectionConstantBCTest.php
664
B
-rw-r--r--
2018-10-13 09:00
ReflectionConstantTest.php
3.38
KB
-rw-r--r--
2018-10-13 09:00
ReflectionLanguageConstructParameterTest.php
2.23
KB
-rw-r--r--
2018-10-13 09:00
ReflectionLanguageConstructTest.php
2.37
KB
-rw-r--r--
2018-10-13 09:00
Save
Rename
<?php /* * This file is part of Psy Shell. * * (c) 2012-2018 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Psy\Test\Reflection; use Psy\Reflection\ReflectionLanguageConstruct; use Psy\Reflection\ReflectionLanguageConstructParameter; class ReflectionLanguageConstructParameterTest extends \PHPUnit\Framework\TestCase { public function testOptions() { $keyword = new ReflectionLanguageConstruct('die'); $refl = new ReflectionLanguageConstructParameter($keyword, 'one', [ 'isArray' => false, 'defaultValue' => null, 'isOptional' => false, 'isPassedByReference' => false, ]); $this->assertNull($refl->getClass()); $this->assertEquals('one', $refl->getName()); $this->assertFalse($refl->isArray()); $this->assertTrue($refl->isDefaultValueAvailable()); $this->assertNull($refl->getDefaultValue()); $this->assertFalse($refl->isOptional()); $this->assertFalse($refl->isPassedByReference()); $reflTwo = new ReflectionLanguageConstructParameter($keyword, 'two', [ 'isArray' => true, 'isOptional' => true, 'isPassedByReference' => true, ]); $this->assertNull($refl->getClass()); $this->assertEquals('two', $reflTwo->getName()); $this->assertTrue($reflTwo->isArray()); $this->assertFalse($reflTwo->isDefaultValueAvailable()); $this->assertNull($reflTwo->getDefaultValue()); $this->assertTrue($reflTwo->isOptional()); $this->assertTrue($reflTwo->isPassedByReference()); $refl = new ReflectionLanguageConstructParameter($keyword, 'three', [ 'defaultValue' => 3, ]); $this->assertNull($refl->getClass()); $this->assertEquals('three', $refl->getName()); $this->assertFalse($refl->isArray()); $this->assertTrue($refl->isDefaultValueAvailable()); $this->assertEquals(3, $refl->getDefaultValue()); $this->assertFalse($refl->isOptional()); $this->assertFalse($refl->isPassedByReference()); } }