1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/proc_open_pipes2.phpt
T
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

29 lines
413 B
PHP

--TEST--
proc_open() with no pipes
--FILE--
<?php
include dirname(__FILE__) . "/proc_open_pipes.inc";
$spec = array();
$php = getenv("TEST_PHP_EXECUTABLE");
$callee = create_sleep_script();
proc_open("$php -n $callee", $spec, $pipes);
var_dump(count($spec));
var_dump($pipes);
?>
--CLEAN--
<?php
include dirname(__FILE__) . "/proc_open_pipes.inc";
unlink_sleep_script();
?>
--EXPECT--
int(0)
array(0) {
}