php-src/Zend/tests/jump12.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

20 lines
211 B
PHP

--TEST--
jump 09: goto in declare statement
--FILE--
<?php
a: print "ok!\n";
goto c;
declare (ticks=1) {
b:
print "ok!\n";
exit;
}
c:
print "ok!\n";
goto b;
?>
--EXPECT--
ok!
ok!
ok!