From 648aaf250a9c56442870c1636a5ce2140b9df234 Mon Sep 17 00:00:00 2001 From: Raghubansh Kumar Date: Mon, 11 Jun 2007 16:14:59 +0000 Subject: New tests for file handling system functions --- ext/standard/tests/file/popen_pclose_basic.phpt | 132 ++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 ext/standard/tests/file/popen_pclose_basic.phpt (limited to 'ext/standard/tests/file/popen_pclose_basic.phpt') diff --git a/ext/standard/tests/file/popen_pclose_basic.phpt b/ext/standard/tests/file/popen_pclose_basic.phpt new file mode 100644 index 0000000000..bb6cbd213f --- /dev/null +++ b/ext/standard/tests/file/popen_pclose_basic.phpt @@ -0,0 +1,132 @@ +--TEST-- +Test popen() and pclose function: basic functionality +--SKIPIF-- + + +--FILE-- + +--CLEAN-- + + +--EXPECTF-- +*** Testing popen() and pclose() with different processes *** +-- Testing popen(): reading from the pipe -- +popen_basic.tmp +-- Testing popen(): reading from a file using 'cat' command -- +line +line of text +line +line of text +line +line of text +line +line of text +line +line of text +line +line +int(100) +*** Testing popen(): writing to the pipe *** +aaa +ddd +ggg +sss +*** Testing for return type of popen() and pclose() functions *** +bool(true) +Test String +bool(true) + +--- Done --- +--UEXPECTF-- +*** Testing popen() and pclose() with different processes *** +-- Testing popen(): reading from the pipe -- +popen_basic.tmp +-- Testing popen(): reading from a file using 'cat' command -- +line +line of text +line +line of text +line +line of text +line +line of text +line +line of text +line +line +int(100) +*** Testing popen(): writing to the pipe *** +aaa +ddd +ggg +sss +*** Testing for return type of popen() and pclose() functions *** +bool(true) +Test String +bool(true) + +--- Done --- -- cgit v1.2.1