view vendor/pear/console_commandline/tests/console_commandline_parse_13.phpt @ 55:2bf0fc326ee2

fix symlink
author Charlie Root
date Wed, 08 Oct 2025 09:09:32 -0400
parents 1e000243b222
children
line wrap: on
line source

--TEST--
Test for Console_CommandLine::parse() method (user errors 1).
--SKIPIF--
<?php if(php_sapi_name()!='cli') echo 'skip'; ?>
--ARGS--
--float=foo foo bar
--FILE--
<?php

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'tests.inc.php';

$parser = buildParser1();
try {
    $result = $parser->parse();
} catch (Exception $exc) {
    echo $exc->getMessage();
}

?>
--EXPECT--
Option "float" requires a value of type float (got "foo").