xref: /PHP-5.6/sapi/cli/tests/002.phpt (revision 1b002cf3)
1--TEST--
2running code with -r
3--SKIPIF--
4<?php
5include "skipif.inc";
6if (substr(PHP_OS, 0, 3) == 'WIN') {
7	die ("skip not for Windows");
8}
9?>
10--FILE--
11<?php
12
13$php = getenv('TEST_PHP_EXECUTABLE');
14
15var_dump(`$php -n -r 'var_dump("hello");'`);
16
17echo "Done\n";
18?>
19--EXPECTF--
20string(18) "string(5) "hello"
21"
22Done
23