diff options
| author | Christian Göttsche | 2024-05-27 22:40:33 +0200 |
|---|---|---|
| committer | jvoisin | 2024-06-09 17:16:23 +0200 |
| commit | 23c7b5a030d3662274053c26d755ea23fe342c99 (patch) | |
| tree | 9f0145842bd5975978e4609a975f8b3f64868846 /src/tests/stream_wrapper | |
| parent | c7ce5c3528e8da8762e6e7067001549e109397ba (diff) | |
Use more generic expected test result format
Diffstat (limited to 'src/tests/stream_wrapper')
| -rw-r--r-- | src/tests/stream_wrapper/stream_wrapper_php.phpt | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/src/tests/stream_wrapper/stream_wrapper_php.phpt b/src/tests/stream_wrapper/stream_wrapper_php.phpt index c82d2f6..0c11a8b 100644 --- a/src/tests/stream_wrapper/stream_wrapper_php.phpt +++ b/src/tests/stream_wrapper/stream_wrapper_php.phpt | |||
| @@ -11,8 +11,10 @@ sp.configuration_file={PWD}/config/config_stream_wrapper_php.ini | |||
| 11 | echo file_get_contents('php://input'); | 11 | echo file_get_contents('php://input'); |
| 12 | file_put_contents('php://output', "Hello from stdout\n"); | 12 | file_put_contents('php://output', "Hello from stdout\n"); |
| 13 | file_put_contents('php://stderr', "Hello from stderr #1\n"); | 13 | file_put_contents('php://stderr', "Hello from stderr #1\n"); |
| 14 | |||
| 14 | file_put_contents('php://memory', "Bye from memory\n"); | 15 | file_put_contents('php://memory', "Bye from memory\n"); |
| 15 | echo file_get_contents('php://memory'); | 16 | echo file_get_contents('php://memory'); |
| 17 | |||
| 16 | file_put_contents('php://temp', "Bye from temp\n"); | 18 | file_put_contents('php://temp', "Bye from temp\n"); |
| 17 | echo file_get_contents('php://temp'); | 19 | echo file_get_contents('php://temp'); |
| 18 | 20 | ||
| @@ -30,47 +32,47 @@ file_put_contents('php://stderr', "Hello from stderr #4\n"); | |||
| 30 | file_put_contents('php://memory', "Bye from memory\n"); | 32 | file_put_contents('php://memory', "Bye from memory\n"); |
| 31 | ?> | 33 | ?> |
| 32 | --EXPECTF-- | 34 | --EXPECTF-- |
| 33 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "input" dropped in %a/stream_wrapper_php.php on line 2 | 35 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "input" dropped in %a/stream_wrapper_php.php on line %d |
| 34 | 36 | ||
| 35 | Warning: file_get_contents(php://input): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 2 | 37 | Warning: file_get_contents(php://input): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
| 36 | 38 | ||
| 37 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "output" dropped in %a/stream_wrapper_php.php on line 3 | 39 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "output" dropped in %a/stream_wrapper_php.php on line %d |
| 38 | 40 | ||
| 39 | Warning: file_put_contents(php://output): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 3 | 41 | Warning: file_put_contents(php://output): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
| 40 | Hello from stderr #1 | 42 | Hello from stderr #1 |
| 41 | 43 | ||
| 42 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "memory" dropped in %a/stream_wrapper_php.php on line 5 | 44 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "memory" dropped in %a/stream_wrapper_php.php on line %d |
| 43 | 45 | ||
| 44 | Warning: file_put_contents(php://memory): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 5 | 46 | Warning: file_put_contents(php://memory): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
| 45 | 47 | ||
| 46 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "memory" dropped in %a/stream_wrapper_php.php on line 6 | 48 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "memory" dropped in %a/stream_wrapper_php.php on line %d |
| 47 | 49 | ||
| 48 | Warning: file_get_contents(php://memory): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 6 | 50 | Warning: file_get_contents(php://memory): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
| 49 | 51 | ||
| 50 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "temp" dropped in %a/stream_wrapper_php.php on line 7 | 52 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "temp" dropped in %a/stream_wrapper_php.php on line %d |
| 51 | 53 | ||
| 52 | Warning: file_put_contents(php://temp): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 7 | 54 | Warning: file_put_contents(php://temp): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
| 53 | 55 | ||
| 54 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "temp" dropped in %a/stream_wrapper_php.php on line 8 | 56 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "temp" dropped in %a/stream_wrapper_php.php on line %d |
| 55 | 57 | ||
| 56 | Warning: file_get_contents(php://temp): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 8 | 58 | Warning: file_get_contents(php://temp): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
| 57 | Hello from stderr #2 | 59 | Hello from stderr #2 |
| 58 | 60 | ||
| 59 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "filter" dropped in %a/stream_wrapper_php.php on line 12 | 61 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "filter" dropped in %a/stream_wrapper_php.php on line %d |
| 60 | 62 | ||
| 61 | Warning: file_put_contents(php://filter/write=string.toupper/resource=output.tmp): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 12 | 63 | Warning: file_put_contents(php://filter/write=string.toupper/resource=output.tmp): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
| 62 | 64 | ||
| 63 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "filter" dropped in %a/stream_wrapper_php.php on line 13 | 65 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "filter" dropped in %a/stream_wrapper_php.php on line %d |
| 64 | 66 | ||
| 65 | Warning: file_get_contents(php://filter/read=string.toupper/resource=output.tmp): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 13 | 67 | Warning: file_get_contents(php://filter/read=string.toupper/resource=output.tmp): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
| 66 | 1 | 68 | 1 |
| 67 | Warning: file_put_contents(): Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_php.php on line 17 | 69 | Warning: file_put_contents(): Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_php.php on line %d |
| 68 | 70 | ||
| 69 | Warning: file_put_contents(): file:// wrapper is disabled in the server configuration in %a/stream_wrapper_php.php on line 17 | 71 | Warning: file_put_contents(): file:// wrapper is disabled in the server configuration in %a/stream_wrapper_php.php on line %d |
| 70 | 72 | ||
| 71 | Warning: file_put_contents(php://stderr): %s to open stream: no suitable wrapper could be found in %a/stream_wrapper_php.php on line 17 | 73 | Warning: file_put_contents(php://stderr): %s to open stream: no suitable wrapper could be found in %a/stream_wrapper_php.php on line %d |
| 72 | Hello from stderr #4 | 74 | Hello from stderr #4 |
| 73 | 75 | ||
| 74 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "memory" dropped in %a/stream_wrapper_php.php on line 21 | 76 | Warning: [snuffleupagus][0.0.0.0][wrappers_whitelist][log] Call to not allowed php stream type "memory" dropped in %a/stream_wrapper_php.php on line %d |
| 75 | 77 | ||
| 76 | Warning: file_put_contents(php://memory): %s to open stream: operation failed in %a/stream_wrapper_php.php on line 21 | 78 | Warning: file_put_contents(php://memory): %s to open stream: operation failed in %a/stream_wrapper_php.php on line %d |
