xref: /PHP-8.2/Zend/tests/nowdoc_011.phpt (revision 782352c5)
1--TEST--
2Nowdocs CAN be used as static scalars.
3--FILE--
4<?php
5
6require_once 'nowdoc.inc';
7
8class e {
9
10    const E = <<<'THISMUSTNOTERROR'
11If you DON'T see this, something's wrong.
12THISMUSTNOTERROR;
13
14};
15
16print e::E . "\n";
17
18?>
19--EXPECT--
20If you DON'T see this, something's wrong.
21