php-src/sapi/cli/tests/004.phpt

35 lines
610 B
Plaintext
Raw Normal View History

2006-11-24 21:33:38 +08:00
--TEST--
show information about function
--SKIPIF--
2007-03-18 03:16:17 +08:00
<?php
include "skipif.inc";
if (!extension_loaded("reflection")) {
die("skip reflection extension required");
2007-03-18 03:16:17 +08:00
}
?>
2006-11-24 21:33:38 +08:00
--FILE--
<?php
2007-01-21 06:12:55 +08:00
$php = getenv('TEST_PHP_EXECUTABLE');
2006-11-24 21:33:38 +08:00
2006-12-05 01:48:52 +08:00
var_dump(`$php -n --rf unknown`);
var_dump(`$php -n --rf echo`);
var_dump(`$php -n --rf phpinfo`);
2006-11-24 21:33:38 +08:00
echo "Done\n";
?>
--EXPECTF--
string(45) "Exception: Function unknown() does not exist
"
string(42) "Exception: Function echo() does not exist
"
2007-05-30 18:19:39 +08:00
string(119) "Function [ <internal:standard> function phpinfo ] {
2006-11-24 21:33:38 +08:00
- Parameters [1] {
Parameter #0 [ <optional> $what ]
}
}
"
Done