php-src/Zend/tests/nowdoc_011.phpt

21 lines
285 B
Plaintext
Raw Normal View History

2008-02-12 17:27:45 +08:00
--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";
?>
--EXPECTF--
If you DON'T see this, something's wrong.