VID-1953 Make the unit tests fail with a better message

Also fix a warning about matching function prototypes
PHP will prevent passing a type other than what's hinted, whereas default value is just a default to make the parameter optional.