cvs: pear-core /tests/PEAR_RunTest test_bug10092stdin.phpt

From: Date: Fri, 16 Feb 2007 20:38:51 +0000
Subject: cvs: pear-core /tests/PEAR_RunTest test_bug10092stdin.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5426@lists.php.net to get a copy of this message
cellog Fri Feb 16 20:38:51 2007 UTC Added files: /pear-core/tests/PEAR_RunTest test_bug10092stdin.phpt Log: new test for STDIN tests http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_RunTest/test_bug10092stdin.phpt?view=markup&rev=1.1 Index: pear-core/tests/PEAR_RunTest/test_bug10092stdin.phpt +++ pear-core/tests/PEAR_RunTest/test_bug10092stdin.phpt --TEST-- PEAR_RunTest --STDIN-- --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --STDIN-- hello world --FILE-- <?php $fp = fopen('php://stdin', 'r'); $contents = fread($fp, 8192); fclose($fp); var_dump(trim($contents)); ?> --EXPECT-- string(11) "hello world"

« previous php.pear.core (#5426) next »