summaryrefslogtreecommitdiff
path: root/src/tests/stream_wrapper/stream_wrapper_restore.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/stream_wrapper/stream_wrapper_restore.phpt')
-rw-r--r--src/tests/stream_wrapper/stream_wrapper_restore.phpt17
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--
2Stream wrapper
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_stream_wrapper_register.ini
7--FILE--
8<?php
9stream_wrapper_restore("file");
10fopen("file://asdasd", "r");
11?>
12--EXPECTF--
13Notice: stream_wrapper_restore(): file:// was never changed, nothing to restore in %a/stream_wrapper_restore.php on line %d
14
15Warning: 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
17Warning: fopen(file://asdasd): failed to open stream: No such file or directory in %a/stream_wrapper_restore.php on line %d