summaryrefslogtreecommitdiff
path: root/Zend/tests/methods-on-non-objects-nested-calls-ns.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/methods-on-non-objects-nested-calls-ns.phpt')
-rwxr-xr-xZend/tests/methods-on-non-objects-nested-calls-ns.phpt26
1 files changed, 0 insertions, 26 deletions
diff --git a/Zend/tests/methods-on-non-objects-nested-calls-ns.phpt b/Zend/tests/methods-on-non-objects-nested-calls-ns.phpt
deleted file mode 100755
index b16f579fa9..0000000000
--- a/Zend/tests/methods-on-non-objects-nested-calls-ns.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-Catch method calls on non-objects with nested calls to namespaced functions with core counterparts
---FILE--
-<?php namespace test;
-function strlen($str) {
- throw new LogicException('Should not be called');
-}
-set_error_handler(function($code, $message) {
- static $i= 0;
- echo 'Called #'.(++$i)."\n";
-});
-
-$x= null;
-var_dump($x->method(strlen('Test')));
-var_dump($x->method(strlen('Test'), strlen('Test')));
-var_dump($x->method([strlen('Test')]));
-echo "Alive\n";
-?>
---EXPECTF--
-Called #1
-NULL
-Called #2
-NULL
-Called #3
-NULL
-Alive