Sample Test: sample009.phpt

Back to "PHPT Test File Layout"

--TEST--
STDIN input
--FILE--
<?php
var_dump(stream_get_contents(STDIN));
?>
--STDIN--
fooBar
use this to input some thing to the php script
--EXPECT--
string(54) "fooBar
use this to input some thing to the php script
"

Back to "PHPT Test File Layout"