xref: /PHP-8.2/Zend/tests/enum/__function__.phpt (revision 269c8dac)
1--TEST--
2Enum __FUNCTION__
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8
9    public function printFunction()
10    {
11        echo __FUNCTION__ . "\n";
12    }
13}
14
15Foo::Bar->printFunction();
16
17?>
18--EXPECT--
19printFunction
20