xref: /PHP-8.1/sapi/cli/tests/004.phpt (revision 25f1c405)
1--TEST--
2show information about function
3--SKIPIF--
4<?php
5include "skipif.inc";
6?>
7--FILE--
8<?php
9
10$php = getenv('TEST_PHP_EXECUTABLE');
11
12var_dump(`$php -n --rf unknown`);
13var_dump(`$php -n --rf echo`);
14var_dump(`$php -n --rf phpinfo`);
15
16echo "Done\n";
17?>
18--EXPECT--
19string(45) "Exception: Function unknown() does not exist
20"
21string(42) "Exception: Function echo() does not exist
22"
23string(155) "Function [ <internal:standard> function phpinfo ] {
24
25  - Parameters [1] {
26    Parameter #0 [ <optional> int $flags = INFO_ALL ]
27  }
28  - Return [ bool ]
29}
30
31"
32Done
33