diff options
| author | Ben Fuhrmannek | 2019-07-16 20:05:24 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2019-07-16 20:05:24 +0200 |
| commit | c3b5fc85dad5a4e20f2e2ca7b95b0c7407a3b8b6 (patch) | |
| tree | 5f1aef8493e9bb12c577a52bf3b9b316ec2fd7be /src | |
| parent | f0142b35616b28dc81247859e93a891c065561f9 (diff) | |
| parent | f7e25b29c1cd5273675dbb3d6883c40377d8315d (diff) | |
Merge branch 'master' of https://github.com/nbs-system/snuffleupagus
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/stream_wrapper/stream_wrapper.phpt | 5 | ||||
| -rw-r--r-- | src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt | 28 |
2 files changed, 32 insertions, 1 deletions
diff --git a/src/tests/stream_wrapper/stream_wrapper.phpt b/src/tests/stream_wrapper/stream_wrapper.phpt index fdea50c..3336ef6 100644 --- a/src/tests/stream_wrapper/stream_wrapper.phpt +++ b/src/tests/stream_wrapper/stream_wrapper.phpt | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Stream wrapper | 2 | Stream wrapper |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php |
| 5 | if (!extension_loaded("snuffleupagus")) print "skip snuffleupagus extension missing"; | ||
| 6 | if (!extension_loaded("openssl")) print "skip openssl extension missing"; | ||
| 7 | ?> | ||
| 5 | --INI-- | 8 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_stream_wrapper.ini | 9 | sp.configuration_file={PWD}/config/config_stream_wrapper.ini |
| 7 | --FILE-- | 10 | --FILE-- |
diff --git a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt new file mode 100644 index 0000000..5a11c8f --- /dev/null +++ b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | --TEST-- | ||
| 2 | Stream wrapper, without a dependency on openssl | ||
| 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('ftp://qweqwezxc'); | ||
| 11 | file_get_contents('lelel://qweqwezxc'); | ||
| 12 | ?> | ||
| 13 | --EXPECTF-- | ||
| 14 | Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 | ||
| 15 | |||
| 16 | Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 | ||
| 17 | |||
| 18 | Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 | ||
| 19 | |||
| 20 | Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_without_openssl.php on line 2 | ||
| 21 | |||
| 22 | Warning: file_get_contents(http://qweqwezxc): failed to open stream: No such file or directory in %a/stream_wrapper_without_openssl.php on line 2 | ||
| 23 | |||
| 24 | Warning: file_get_contents(ftp://qweqwezxc): failed to open stream: operation failed in %a/stream_wrapper_without_openssl.php on line 3 | ||
| 25 | |||
| 26 | Warning: file_get_contents(): Unable to find the wrapper "lelel" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_without_openssl.php on line 4 | ||
| 27 | |||
| 28 | Warning: file_get_contents(lelel://qweqwezxc): failed to open stream: No such file or directory in %a/stream_wrapper_without_openssl.php on line 4 | ||
