php-src/Zend/tests/nowdoc_009.phpt
2008-02-12 09:27:45 +00:00

41 lines
518 B
PHP

--TEST--
Torture the T_END_NOWDOC rules (nowdoc)
--FILE--
<?php
require_once 'nowdoc.inc';
print <<<'ENDOFNOWDOC'
ENDOFNOWDOC ;
ENDOFNOWDOC;
ENDOFNOWDOC
ENDOFNOWDOC
$ENDOFNOWDOC;
ENDOFNOWDOC;
$x = <<<'ENDOFNOWDOC'
ENDOFNOWDOC ;
ENDOFNOWDOC;
ENDOFNOWDOC
ENDOFNOWDOC
$ENDOFNOWDOC;
ENDOFNOWDOC;
print "{$x}";
?>
--EXPECT--
ENDOFNOWDOC ;
ENDOFNOWDOC;
ENDOFNOWDOC
ENDOFNOWDOC
$ENDOFNOWDOC;
ENDOFNOWDOC ;
ENDOFNOWDOC;
ENDOFNOWDOC
ENDOFNOWDOC
$ENDOFNOWDOC;