xref: /PHP-7.4/Zend/tests/nowdoc_012.phpt (revision ddcf7a2f)
1--TEST--
2Test false labels
3--FILE--
4<?php
5
6require_once 'nowdoc.inc';
7
8$x = <<<'ENDOFNOWDOC'
9This is a nowdoc test.
10NOTREALLYEND;
11Another line
12NOTENDEITHER;
13ENDOFNOWDOCWILLBESOON
14Now let's finish it
15ENDOFNOWDOC;
16print "{$x}\n";
17
18?>
19--EXPECT--
20This is a nowdoc test.
21NOTREALLYEND;
22Another line
23NOTENDEITHER;
24ENDOFNOWDOCWILLBESOON
25Now let's finish it
26