From 8e3192aed8ef488efd92b40543268f884e1d99e8 Mon Sep 17 00:00:00 2001 From: Josie Messa Date: Fri, 7 Mar 2008 16:20:16 +0000 Subject: [PATCH] - Tests awaiting fix of bug #44246 --- .../tests/dir/closedir_variation3.phpt | 42 +++++++++++++++++++ .../tests/dir/readdir_variation7.phpt | 36 ++++++++++++++++ .../tests/dir/rewinddir_variation3.phpt | 41 ++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 ext/standard/tests/dir/closedir_variation3.phpt create mode 100644 ext/standard/tests/dir/readdir_variation7.phpt create mode 100644 ext/standard/tests/dir/rewinddir_variation3.phpt diff --git a/ext/standard/tests/dir/closedir_variation3.phpt b/ext/standard/tests/dir/closedir_variation3.phpt new file mode 100644 index 0000000000..d0e3412b6c --- /dev/null +++ b/ext/standard/tests/dir/closedir_variation3.phpt @@ -0,0 +1,42 @@ +--TEST-- +Test closedir() function : usage variations - close a file pointer +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing closedir() : usage variations *** + +-- Open a file using fopen() -- +resource(%d) of type (stream) + +-- Try to close the file pointer using closedir() -- +Warning: closedir(): %d is not a valid Directory resource in %s on line %d + +-- Check file pointer: -- +resource(%d) of type (stream) +===DONE=== diff --git a/ext/standard/tests/dir/readdir_variation7.phpt b/ext/standard/tests/dir/readdir_variation7.phpt new file mode 100644 index 0000000000..86bd43061e --- /dev/null +++ b/ext/standard/tests/dir/readdir_variation7.phpt @@ -0,0 +1,36 @@ +--TEST-- +Test readdir() function : usage variations - use file pointers +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing readdir() : usage variations *** +resource(%d) of type (stream) + +Warning: readdir(): %d is not a valid Directory resource in %s on line %d +bool(false) +===DONE=== diff --git a/ext/standard/tests/dir/rewinddir_variation3.phpt b/ext/standard/tests/dir/rewinddir_variation3.phpt new file mode 100644 index 0000000000..b681e470f6 --- /dev/null +++ b/ext/standard/tests/dir/rewinddir_variation3.phpt @@ -0,0 +1,41 @@ +--TEST-- +Test rewinddir() function : usage variations - file pointers +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing rewinddir() : usage variations *** + +-- Open a file using fopen -- +resource(%d) of type (stream) +NULL + +-- Check if rewinddir() has repositioned the file pointer -- +rewinddir() does not work on file pointers +===DONE=== -- 2.40.0