From 750c42aecb81092abfb360c50b69e1a0eb2bfbfe Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 4 Jun 2008 18:34:12 +0000 Subject: [PATCH] - New test --- Zend/tests/bug45180.phpt | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Zend/tests/bug45180.phpt diff --git a/Zend/tests/bug45180.phpt b/Zend/tests/bug45180.phpt new file mode 100644 index 0000000000..887a159881 --- /dev/null +++ b/Zend/tests/bug45180.phpt @@ -0,0 +1,61 @@ +--TEST-- +Testing callback formats within class method +--FILE-- +test(); + +$x::A(); + +foo::B(); + +$f = 'FOO'; + +$f::C(); + +$f::$f(); + +foo::$f(); + +?> +--EXPECT-- +__call: +unicode(3) "ABC" +__call: +unicode(3) "ABC" +__call: +unicode(3) "XYZ" +__call: +unicode(3) "WWW" +__call: +unicode(3) "ABC" +__callstatic: +unicode(1) "A" +__callstatic: +unicode(1) "B" +__callstatic: +unicode(1) "C" +__callstatic: +unicode(3) "FOO" +__callstatic: +unicode(3) "FOO" -- 2.50.1