xref: /PHP-8.1/Zend/tests/enum/backed-string.phpt (revision 269c8dac)
1--TEST--
2String enum value
3--FILE--
4<?php
5
6enum Foo: string {
7    case Bar = 'bar';
8    case Baz = 'baz';
9}
10
11echo Foo::Bar->value . "\n";
12echo Foo::Baz->value . "\n";
13
14?>
15--EXPECT--
16bar
17baz
18