xref: /PHP-8.2/Zend/tests/enum/basic-methods.phpt (revision 269c8dac)
1--TEST--
2Enum methods
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8    case Baz;
9
10    public function dump() {
11        var_dump($this);
12    }
13}
14
15Foo::Bar->dump();
16Foo::Baz->dump();
17
18?>
19--EXPECT--
20enum(Foo::Bar)
21enum(Foo::Baz)
22