summaryrefslogtreecommitdiff
path: root/Zend/tests/heredoc_011.phpt
blob: 4f0adfd7e9fe3139887e62c23b60bd9f8700afa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
STATIC heredocs CAN be used as static scalars.
--FILE--
<?php

require_once 'nowdoc.inc';

class e {

    const E = <<<THISMUSTNOTERROR
If you DON'T see this, something's wrong.
THISMUSTNOTERROR;

};

print e::E . "\n";

?>
--EXPECT--
If you DON'T see this, something's wrong.