diff options
author | Felipe Pena <felipe@php.net> | 2008-06-03 15:36:59 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-06-03 15:36:59 +0000 |
commit | cde37a23b06a04a76e5f226495643306ee0b94f8 (patch) | |
tree | b13ed24fb23807a206fa9073091accaabbfd5e79 /Zend/tests/call_static_006.phpt | |
parent | 15ec44e0bde2ce00fbfe26ddf4249b9f4681d160 (diff) | |
download | php-git-cde37a23b06a04a76e5f226495643306ee0b94f8.tar.gz |
- New tests
Diffstat (limited to 'Zend/tests/call_static_006.phpt')
-rw-r--r-- | Zend/tests/call_static_006.phpt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Zend/tests/call_static_006.phpt b/Zend/tests/call_static_006.phpt new file mode 100644 index 0000000000..f5df139dd0 --- /dev/null +++ b/Zend/tests/call_static_006.phpt @@ -0,0 +1,32 @@ +--TEST-- +Testing __callStatic +--XFAIL-- +http://bugs.php.net/bug.php?id=45089 +--FILE-- +<?php + +class foo { + public function aa() { + print "ok\n"; + } + static function __callstatic($a, $b) { + var_dump($a); + } +} + +foo::aa(); + +$b = 'AA'; +foo::$b(); + +foo::__construct(); + +?> +--EXPECTF-- +Strict Standards: Non-static method foo::aa() should not be called statically in %s on line %d +ok + +Strict Standards: Non-static method foo::aa() should not be called statically in %s on line %d +ok + +Fatal error: Can not call constructor in %s on line %d |