Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.204
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
xampp /
php /
pear /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
01glob.phpt
815
B
-rw-rw-rw-
2016-01-27 12:10
02maptree.phpt
2.21
KB
-rw-rw-rw-
2016-01-27 12:10
03maptreemultiple.phpt
1.31
KB
-rw-rw-rw-
2016-01-27 12:10
04search.phpt
1.12
KB
-rw-rw-rw-
2016-01-27 12:10
05search_inside.phpt
1.31
KB
-rw-rw-rw-
2016-01-27 12:10
06match_shell.phpt
2.34
KB
-rw-rw-rw-
2016-01-27 12:10
1.phpt
370
B
-rw-rw-rw-
2016-01-27 12:12
10.phpt
1.65
KB
-rw-rw-rw-
2016-01-27 12:12
11.phpt
484
B
-rw-rw-rw-
2016-01-27 12:12
12.phpt
546
B
-rw-rw-rw-
2016-01-27 12:12
13.phpt
567
B
-rw-rw-rw-
2016-01-27 12:12
14.phpt
941
B
-rw-rw-rw-
2016-01-27 12:12
15.phpt
735
B
-rw-rw-rw-
2016-01-27 12:12
16.phpt
759
B
-rw-rw-rw-
2016-01-27 12:12
17.phpt
903
B
-rw-rw-rw-
2016-01-27 12:12
18.phpt
423
B
-rw-rw-rw-
2016-01-27 12:12
19.phpt
497
B
-rw-rw-rw-
2016-01-27 12:12
2.phpt
407
B
-rw-rw-rw-
2016-01-27 12:12
20.phpt
545
B
-rw-rw-rw-
2016-01-27 12:12
21.phpt
568
B
-rw-rw-rw-
2016-01-27 12:12
22.phpt
703
B
-rw-rw-rw-
2016-01-27 12:12
23.phpt
621
B
-rw-rw-rw-
2016-01-27 12:12
24.phpt
1013
B
-rw-rw-rw-
2016-01-27 12:12
25.phpt
621
B
-rw-rw-rw-
2016-01-27 12:12
26.phpt
1.27
KB
-rw-rw-rw-
2016-01-27 12:12
27.phpt
1.52
KB
-rw-rw-rw-
2016-01-27 12:12
28.phpt
1.52
KB
-rw-rw-rw-
2016-01-27 12:12
29.phpt
1.14
KB
-rw-rw-rw-
2016-01-27 12:12
3.phpt
494
B
-rw-rw-rw-
2016-01-27 12:12
30.phpt
1.28
KB
-rw-rw-rw-
2016-01-27 12:12
31.phpt
2
KB
-rw-rw-rw-
2016-01-27 12:12
4.phpt
673
B
-rw-rw-rw-
2016-01-27 12:12
5.phpt
1.18
KB
-rw-rw-rw-
2016-01-27 12:12
6.phpt
1.83
KB
-rw-rw-rw-
2016-01-27 12:12
7.phpt
966
B
-rw-rw-rw-
2016-01-27 12:12
8.phpt
354
B
-rw-rw-rw-
2016-01-27 12:12
9.phpt
1.82
KB
-rw-rw-rw-
2016-01-27 12:12
AllTests.php
754
B
-rw-rw-rw-
2016-01-27 12:11
DispatcherTest.php
5.04
KB
-rw-rw-rw-
2016-01-27 12:11
Getargs_basic_testcase.php
15.55
KB
-rw-rw-rw-
2016-01-27 12:10
Getargs_getValues_testcase.php
9.75
KB
-rw-rw-rw-
2016-01-27 12:10
bug2773.phpt
771
B
-rw-rw-rw-
2016-01-27 12:10
setup.php
937
B
-rw-rw-rw-
2016-01-27 12:10
testBasic_apiVersion.phpt
449
B
-rw-rw-rw-
2016-01-27 12:11
testBasic_attributesToString.phpt
3.55
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_collapseEmptyTags.phpt
1.75
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_createCDataSection.phpt
494
B
-rw-rw-rw-
2016-01-27 12:11
testBasic_createComment.phpt
471
B
-rw-rw-rw-
2016-01-27 12:11
testBasic_createEndElement.phpt
696
B
-rw-rw-rw-
2016-01-27 12:11
testBasic_createStartElement.phpt
3.68
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_createTag.phpt
5.78
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_createTagFromArray.phpt
9.09
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_getDocTypeDeclaration.phpt
1.48
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_getXmlDeclaration.phpt
1.14
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_isValidName.phpt
1.38
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_raiseError.phpt
502
B
-rw-rw-rw-
2016-01-27 12:11
testBasic_replaceEntities.phpt
3.17
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_reverseEntities.phpt
3.16
KB
-rw-rw-rw-
2016-01-27 12:11
testBasic_splitQualifiedName.phpt
983
B
-rw-rw-rw-
2016-01-27 12:11
testBug_18343.phpt
3.14
KB
-rw-rw-rw-
2016-01-27 12:11
testBug_4950.phpt
675
B
-rw-rw-rw-
2016-01-27 12:11
testBug_5392.phpt
1.07
KB
-rw-rw-rw-
2016-01-27 12:11
Save
Rename
<?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(); } ?>