summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxXx-caillou-xXx2018-08-27 13:45:15 +0200
committerjvoisin2018-08-27 11:45:15 +0000
commit6abdd9abca50c92390b94fbebb3e7065d5d532da (patch)
treed6a04d93ec81c96734293dba7f903ca8c1fd4d2a /src
parent0dc4c17ac05eee1c0533696e0ed19546f2b90195 (diff)
Modify test for callback functions
close #171
Diffstat (limited to 'src')
-rw-r--r--src/tests/config/config_disabled_functions_callback_called_file_r.ini2
-rw-r--r--src/tests/disabled_functions_callback_called_file_r.phpt5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/tests/config/config_disabled_functions_callback_called_file_r.ini b/src/tests/config/config_disabled_functions_callback_called_file_r.ini
index b076585..daaee36 100644
--- a/src/tests/config/config_disabled_functions_callback_called_file_r.ini
+++ b/src/tests/config/config_disabled_functions_callback_called_file_r.ini
@@ -1 +1 @@
sp.disable_function.function("test_callback").filename_r("file_r\\.php$").drop(); \ No newline at end of file sp.disable_function.function("test_callback").filename_r("callback\\.php$").drop();
diff --git a/src/tests/disabled_functions_callback_called_file_r.phpt b/src/tests/disabled_functions_callback_called_file_r.phpt
index f64f673..7f3804b 100644
--- a/src/tests/disabled_functions_callback_called_file_r.phpt
+++ b/src/tests/disabled_functions_callback_called_file_r.phpt
@@ -31,10 +31,9 @@ echo test('test_callback');
31 31
32?> 32?>
33--EXPECTF-- 33--EXPECTF--
34[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'test_callback' in %a/disabled_functions_callback__called_file_r.php:%d. 34[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'test_callback' in %a/myfunc_callback.php:%d.
35--XFAIL--
36--CLEAN-- 35--CLEAN--
37<?php 36<?php
38$dir = __DIR__; 37$dir = __DIR__;
39@unlink("$dir/myfunc_callback.php"); 38@unlink("$dir/myfunc_callback.php");
40?> \ No newline at end of file 39?>