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