xref: /PHP-7.4/sapi/cli/tests/002-unix.phpt (revision 9c144e0d)
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--EXPECT--
20string(18) "string(5) "hello"
21"
22Done
23