From 11154bd6f708629a565f31acc4e8ac45b1a6bb7d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 9 Jul 2019 22:50:26 +0200 Subject: Add a stream wrapper test that doesn't depend on openssl --- .../stream_wrapper_without_openssl.phpt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt (limited to 'src') 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 @@ +--TEST-- +Stream wrapper, without a dependency on openssl +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/config_stream_wrapper.ini +--FILE-- + +--EXPECTF-- +Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 + +Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 + +Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 + +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 + +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 + +Warning: file_get_contents(ftp://qweqwezxc): failed to open stream: operation failed in %a/stream_wrapper_without_openssl.php on line 3 + +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 + +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 -- cgit v1.3 From 56e0163ab968421601bee2f3d2206e9cda122ddd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 9 Jul 2019 23:00:50 +0200 Subject: Don't run an openssl-dependent test is openssl isn't installed --- src/tests/stream_wrapper/stream_wrapper.phpt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 @@ --TEST-- Stream wrapper --SKIPIF-- - + --INI-- sp.configuration_file={PWD}/config/config_stream_wrapper.ini --FILE-- -- cgit v1.3