summaryrefslogtreecommitdiff
path: root/src/tests/stream_wrapper.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/stream_wrapper.phpt')
-rw-r--r--src/tests/stream_wrapper.phpt31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/tests/stream_wrapper.phpt b/src/tests/stream_wrapper.phpt
new file mode 100644
index 0000000..b4e49a0
--- /dev/null
+++ b/src/tests/stream_wrapper.phpt
@@ -0,0 +1,31 @@
1--TEST--
2Stream wrapper
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_stream_wrapper.ini
7--FILE--
8<?php
9file_get_contents('http://qweqwezxc');
10file_get_contents('https://qweqwezxc');
11file_get_contents('ftp://qweqwezxc');
12file_get_contents('lelel://qweqwezxc');
13?>
14--EXPECTF--
15Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0
16
17Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0
18
19Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0
20
21Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in %a/tests/stream_wrapper.php on line %d
22
23Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in %a/tests/stream_wrapper.php on line %d
24
25Warning: file_get_contents(https://qweqwezxc): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in %a/tests/stream_wrapper.php on line %d
26
27Warning: file_get_contents(ftp://qweqwezxc): failed to open stream: operation failed in %a/tests/stream_wrapper.php on line %d
28
29Warning: file_get_contents(): Unable to find the wrapper "lelel" - did you forget to enable it when you configured PHP? in %a/tests/stream_wrapper.php on line %d
30
31Warning: file_get_contents(lelel://qweqwezxc): failed to open stream: No such file or directory in %a/tests/stream_wrapper.php on line %d