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.133.142.101
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
vendor /
psy /
psysh /
test /
CodeCleaner /
Delete
Unzip
Name
Size
Permission
Date
Action
Fixtures
[ DIR ]
drwxr-xr-x
2018-10-13 09:00
AbstractClassPassTest.php
1.29
KB
-rw-r--r--
2018-10-13 09:00
AssignThisVariablePassTest.php
1.19
KB
-rw-r--r--
2018-10-13 09:00
CallTimePassByReferencePassTest.php
1.25
KB
-rw-r--r--
2018-10-13 09:00
CalledClassPassTest.php
2.54
KB
-rw-r--r--
2018-10-13 09:00
CodeCleanerTestCase.php
909
B
-rw-r--r--
2018-10-13 09:00
ExitPassTest.php
1.91
KB
-rw-r--r--
2018-10-13 09:00
FinalClassPassTest.php
1.54
KB
-rw-r--r--
2018-10-13 09:00
FunctionContextPassTest.php
1.13
KB
-rw-r--r--
2018-10-13 09:00
FunctionReturnInWriteContextPassTest.php
2.36
KB
-rw-r--r--
2018-10-13 09:00
ImplicitReturnPassTest.php
1.98
KB
-rw-r--r--
2018-10-13 09:00
InstanceOfPassTest.php
1.81
KB
-rw-r--r--
2018-10-13 09:00
LeavePsyshAlonePassTest.php
1.49
KB
-rw-r--r--
2018-10-13 09:00
LegacyEmptyPassTest.php
1.6
KB
-rw-r--r--
2018-10-13 09:00
ListPassTest.php
3.71
KB
-rw-r--r--
2018-10-13 09:00
LoopContextPassTest.php
3.39
KB
-rw-r--r--
2018-10-13 09:00
MagicConstantsPassTest.php
790
B
-rw-r--r--
2018-10-13 09:00
NamespacePassTest.php
1.83
KB
-rw-r--r--
2018-10-13 09:00
NoReturnValueTest.php
769
B
-rw-r--r--
2018-10-13 09:00
PassableByReferencePassTest.php
2.74
KB
-rw-r--r--
2018-10-13 09:00
RequirePassTest.php
2.68
KB
-rw-r--r--
2018-10-13 09:00
StrictTypesPassTest.php
1.29
KB
-rw-r--r--
2018-10-13 09:00
UseStatementPassTest.php
3.19
KB
-rw-r--r--
2018-10-13 09:00
ValidClassNamePassTest.php
10.55
KB
-rw-r--r--
2018-10-13 09:00
ValidConstantPassTest.php
1.42
KB
-rw-r--r--
2018-10-13 09:00
ValidConstructorPassTest.php
2.72
KB
-rw-r--r--
2018-10-13 09:00
ValidFunctionNamePassTest.php
5.13
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\CodeCleaner; use Psy\CodeCleaner\ValidFunctionNamePass; class ValidFunctionNamePassTest extends CodeCleanerTestCase { public function setUp() { $this->setPass(new ValidFunctionNamePass()); } /** * @dataProvider getInvalidFunctions * @expectedException \Psy\Exception\FatalErrorException */ public function testProcessInvalidFunctionCallsAndDeclarations($code) { $this->parseAndTraverse($code); } public function getInvalidFunctions() { return [ // function declarations ['function array_merge() {}'], ['function Array_Merge() {}'], [' function psy_test_codecleaner_validfunctionnamepass_alpha() {} function psy_test_codecleaner_validfunctionnamepass_alpha() {} '], [' namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { function beta() {} } namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { function beta() {} } '], // function calls ['psy_test_codecleaner_validfunctionnamepass_gamma()'], [' namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { delta(); } '], // recursion ['function a() { a(); } function a() {}'], ]; } /** * @dataProvider getValidFunctions */ public function testProcessValidFunctionCallsAndDeclarations($code) { $this->parseAndTraverse($code); $this->assertTrue(true); } public function getValidFunctions() { return [ ['function psy_test_codecleaner_validfunctionnamepass_epsilon() {}'], [' namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { function zeta() {} } '], [' namespace { function psy_test_codecleaner_validfunctionnamepass_eta() {} } namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { function psy_test_codecleaner_validfunctionnamepass_eta() {} } '], [' namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { function psy_test_codecleaner_validfunctionnamepass_eta() {} } namespace { function psy_test_codecleaner_validfunctionnamepass_eta() {} } '], [' namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { function array_merge() {} } '], // function calls ['array_merge();'], [' namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { function theta() {} } namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { theta(); } '], // closures ['$test = function(){};$test()'], [' namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass { function theta() {} } namespace { Psy\\Test\\CodeCleaner\\ValidFunctionNamePass\\theta(); } '], // recursion ['function a() { a(); }'], // conditionally defined functions [' function a() {} if (false) { function a() {} } '], [' function a() {} if (true) { function a() {} } else if (false) { function a() {} } else { function a() {} } '], // ewww [' function a() {} if (true): function a() {} elseif (false): function a() {} else: function a() {} endif; '], [' function a() {} while (false) { function a() {} } '], [' function a() {} do { function a() {} } while (false); '], [' function a() {} switch (1) { case 0: function a() {} break; case 1: function a() {} break; case 2: function a() {} break; } '], ]; } }