xref: /PHP-5.6/sapi/cli/tests/002-win32.phpt (revision a16bcaeb)
1--TEST--
2running code with -r
3--SKIPIF--
4<?php
5include "skipif.inc";
6if (substr(PHP_OS, 0, 3) != 'WIN') {
7	die ("skip only 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