php-src/sapi/cli/tests/002-win32.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 only for Windows");
}
?>
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
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