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

23 lines
313 B
Plaintext
Raw Normal View History

2006-11-24 13:33:38 +00:00
--TEST--
running code with -r
--SKIPIF--
<?php
include "skipif.inc";
if (substr(PHP_OS, 0, 3) == 'WIN') {
die ("skip not for Windows");
}
?>
--FILE--
<?php
2007-01-20 22:12:55 +00:00
$php = getenv('TEST_PHP_EXECUTABLE');
2006-11-24 13:33:38 +00:00
2006-12-04 17:48:52 +00:00
var_dump(`$php -n -r 'var_dump("hello");'`);
2006-11-24 13:33:38 +00:00
echo "Done\n";
?>
--EXPECTF--
string(18) "string(5) "hello"
"
Done