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