1--TEST--
2register_tick_function only accepts a valid callback as parameter
3--FILE--
4<?php
5declare(ticks=1);
6
7try {
8    register_tick_function("a");
9} catch (TypeError $exception) {
10    echo $exception->getMessage() . "\n";
11}
12?>
13--EXPECT--
14register_tick_function(): Argument #1 ($callback) must be a valid tick callback, "a" given
15