diff options
Diffstat (limited to 'src/tests/stream_wrapper/stream_wrapper_restore.phpt')
| -rw-r--r-- | src/tests/stream_wrapper/stream_wrapper_restore.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/stream_wrapper/stream_wrapper_restore.phpt b/src/tests/stream_wrapper/stream_wrapper_restore.phpt new file mode 100644 index 0000000..b4a29c8 --- /dev/null +++ b/src/tests/stream_wrapper/stream_wrapper_restore.phpt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --TEST-- | ||
| 2 | Stream wrapper | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/config_stream_wrapper_register.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | stream_wrapper_restore("file"); | ||
| 10 | fopen("file://asdasd", "r"); | ||
| 11 | ?> | ||
| 12 | --EXPECTF-- | ||
| 13 | Notice: stream_wrapper_restore(): file:// was never changed, nothing to restore in %a/stream_wrapper_restore.php on line %d | ||
| 14 | |||
| 15 | Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_restore.php on line %d | ||
| 16 | |||
| 17 | Warning: fopen(file://asdasd): failed to open stream: No such file or directory in %a/stream_wrapper_restore.php on line %d | ||
