diff options
Diffstat (limited to 'Zend/tests/enum/backed-string-heredoc.phpt')
-rw-r--r-- | Zend/tests/enum/backed-string-heredoc.phpt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Zend/tests/enum/backed-string-heredoc.phpt b/Zend/tests/enum/backed-string-heredoc.phpt new file mode 100644 index 0000000000..b2e9b8f3e9 --- /dev/null +++ b/Zend/tests/enum/backed-string-heredoc.phpt @@ -0,0 +1,30 @@ +--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 |