diff options
Diffstat (limited to 'src/tests/stream_wrapper/stream_wrapper.phpt')
| -rw-r--r-- | src/tests/stream_wrapper/stream_wrapper.phpt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/tests/stream_wrapper/stream_wrapper.phpt b/src/tests/stream_wrapper/stream_wrapper.phpt new file mode 100644 index 0000000..fdea50c --- /dev/null +++ b/src/tests/stream_wrapper/stream_wrapper.phpt | |||
| @@ -0,0 +1,31 @@ | |||
| 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.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | file_get_contents('http://qweqwezxc'); | ||
| 10 | file_get_contents('https://qweqwezxc'); | ||
| 11 | file_get_contents('ftp://qweqwezxc'); | ||
| 12 | file_get_contents('lelel://qweqwezxc'); | ||
| 13 | ?> | ||
| 14 | --EXPECTF-- | ||
| 15 | Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 | ||
| 16 | |||
| 17 | Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 | ||
| 18 | |||
| 19 | Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 | ||
| 20 | |||
| 21 | Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in %a/stream_wrapper.php on line %d | ||
| 22 | |||
| 23 | Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: %s | ||
| 24 | |||
| 25 | Warning: file_get_contents(https://qweqwezxc): failed to open stream: php_network_getaddresses: getaddrinfo failed: %s | ||
| 26 | |||
| 27 | Warning: file_get_contents(ftp://qweqwezxc): failed to open stream: operation failed in %a/stream_wrapper.php on line %d | ||
| 28 | |||
| 29 | Warning: file_get_contents(): Unable to find the wrapper "lelel" - did you forget to enable it when you configured PHP? in %a/stream_wrapper.php on line %d | ||
| 30 | |||
| 31 | Warning: file_get_contents(lelel://qweqwezxc): failed to open stream: No such file or directory in %a/stream_wrapper.php on line %d | ||
