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