php-src/Zend/tests/nowdoc_011.phpt
2018-10-14 19:45:12 +02:00

21 lines
280 B
PHP

--TEST--
Nowdocs 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.