diff options
Diffstat (limited to 'Zend/tests/enum/__method__.phpt')
-rw-r--r-- | Zend/tests/enum/__method__.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/enum/__method__.phpt b/Zend/tests/enum/__method__.phpt new file mode 100644 index 0000000000..5d4195566e --- /dev/null +++ b/Zend/tests/enum/__method__.phpt @@ -0,0 +1,19 @@ +--TEST-- +Enum __METHOD__ +--FILE-- +<?php + +enum Foo { + case Bar; + + public function printMethod() + { + echo __METHOD__ . "\n"; + } +} + +Foo::Bar->printMethod(); + +?> +--EXPECT-- +Foo::printMethod |