summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_namespace.phpt
diff options
context:
space:
mode:
authorSebastien Blot2017-09-20 10:11:01 +0200
committerSebastien Blot2017-09-20 10:11:01 +0200
commit868f96c759b6650d88ff9f4fbc5c048302134248 (patch)
treec0de0af318bf77a8959164ef11aeeeb2b7bab294 /src/tests/disabled_functions_namespace.phpt
Initial import
Diffstat (limited to 'src/tests/disabled_functions_namespace.phpt')
-rw-r--r--src/tests/disabled_functions_namespace.phpt31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/tests/disabled_functions_namespace.phpt b/src/tests/disabled_functions_namespace.phpt
new file mode 100644
index 0000000..72c7d0b
--- /dev/null
+++ b/src/tests/disabled_functions_namespace.phpt
@@ -0,0 +1,31 @@
1--TEST--
2Disable functions: namespaces support isn't implemented now
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_disabled_functions_namespace.ini
7--FILE--
8<?php
9namespace my_super_namespace {
10 function my_function() {
11 echo "1\n";
12 }
13}
14namespace my_second_namespace {
15 function my_function() {
16 echo "2\n";
17 }
18}
19namespace {
20 function my_function() {
21 echo "3\n";
22 }
23\strcmp("1", "2");
24\my_super_namespace\my_function();
25\my_second_namespace\my_function();
26my_function();
27}
28?>
29--XFAIL--
30--EXPECTF--
31[snuffleupagus] The call to the function 'strcmp' in %a/tests/disabled_functions_namespace.php:%d has been disabled.