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