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