xref: /PHP-5.3/sapi/cli/tests/012.phpt (revision af49e58f)
1--TEST--
2invalid arguments and error messages
3--SKIPIF--
4<?php include "skipif.inc"; ?>
5--FILE--
6<?php
7
8$php = getenv('TEST_PHP_EXECUTABLE');
9
10var_dump(`"$php" -n -F some.php -F some.php`);
11var_dump(`"$php" -n -F some.php -R some.php`);
12var_dump(`"$php" -n -R some.php -F some.php`);
13var_dump(`"$php" -n -R some.php -R some.php`);
14var_dump(`"$php" -n -f some.php -f some.php`);
15var_dump(`"$php" -n -B '' -B ''`);
16var_dump(`"$php" -n -E '' -E ''`);
17var_dump(`"$php" -n -r '' -r ''`);
18
19echo "Done\n";
20?>
21--EXPECTF--
22You can use -R or -F only once.
23NULL
24You can use -R or -F only once.
25NULL
26You can use -R or -F only once.
27NULL
28You can use -R or -F only once.
29NULL
30You can use -f only once.
31NULL
32You can use -B only once.
33NULL
34You can use -E only once.
35NULL
36You can use -r only once.
37NULL
38Done
39