xref: /php-src/Zend/tests/declare_005.phpt (revision ded3d984)
1--TEST--
2Testing declare statement with ticks
3--FILE--
4<?php
5register_tick_function(function () { echo "tick\n"; });
6function foo() { }
7
8declare(ticks=1) {
9
10$statement;
11foo();
12
13}
14?>
15--EXPECT--
16tick
17tick
18