diff options
| author | jvoisin | 2019-01-14 19:29:25 +0000 |
|---|---|---|
| committer | GitHub | 2019-01-14 19:29:25 +0000 |
| commit | e79f7e3bd992c7f0915ef9afe7afb6d79740527a (patch) | |
| tree | f881c25694eb00da2331a9ab280ec1c24a5662ab /src/tests/stream_wrapper/stream_wrapper.phpt | |
| parent | c943db586ac46b686b49bdf61d8473e39dd93000 (diff) | |
Reorganize the testsuite
Splitting the testsuite in several components makes it easier to manage and comprehend.
This was also needed some some tests aren't passing on Alpine Linux, but we still want to run
as many of them as we can on this platform.
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 | ||
