dis-bench / src /php /php-src /Zend /tests /enum /backed-string-heredoc.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
288 Bytes
--TEST--
String enum value with heredoc
--FILE--
<?php
enum Foo: string {
case Bar = <<<BAR
Bar
bar
bar
BAR;
case Baz = <<<'BAZ'
Baz
baz
baz
BAZ;
}
echo Foo::Bar->value . "\n";
echo Foo::Baz->value . "\n";
?>
--EXPECT--
Bar
bar
bar
Baz
baz
baz