diff options
-rwxr-xr-x | Zend/tests/methods-on-non-objects-nested-calls-static.phpt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/tests/methods-on-non-objects-nested-calls-static.phpt b/Zend/tests/methods-on-non-objects-nested-calls-static.phpt index 9e969b7d68..bb5768e7f5 100755 --- a/Zend/tests/methods-on-non-objects-nested-calls-static.phpt +++ b/Zend/tests/methods-on-non-objects-nested-calls-static.phpt @@ -13,10 +13,18 @@ set_error_handler(function($code, $message) { }); $x= null; +$class= 'Nesting'; +$method= 'nested'; var_dump($x->method(Nesting::nested())); +var_dump($x->method($class::nested())); +var_dump($x->method($class::{$method}())); echo "Alive\n"; ?> --EXPECTF-- Called #1 NULL +Called #2 +NULL +Called #3 +NULL Alive |