summaryrefslogtreecommitdiff
path: root/src/tests/stream_wrapper
diff options
context:
space:
mode:
authorjvoisin2019-07-09 22:50:26 +0200
committerjvoisin2019-07-09 22:50:26 +0200
commit11154bd6f708629a565f31acc4e8ac45b1a6bb7d (patch)
treecef3ca785fa0986947bf77e7a5bf8ebfe71ad4c3 /src/tests/stream_wrapper
parentbd399574d6b2bf7faa15c04c2bda03b73c16a011 (diff)
Add a stream wrapper test that doesn't depend on openssl
Diffstat (limited to 'src/tests/stream_wrapper')
-rw-r--r--src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt28
1 files changed, 28 insertions, 0 deletions
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--
2Stream wrapper, without a dependency on openssl
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('ftp://qweqwezxc');
11file_get_contents('lelel://qweqwezxc');
12?>
13--EXPECTF--
14Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0
15
16Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0
17
18Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0
19
20Warning: 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
22Warning: 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
24Warning: file_get_contents(ftp://qweqwezxc): failed to open stream: operation failed in %a/stream_wrapper_without_openssl.php on line 3
25
26Warning: 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
28Warning: file_get_contents(lelel://qweqwezxc): failed to open stream: No such file or directory in %a/stream_wrapper_without_openssl.php on line 4