GET Video splitting into functions; PHPUnit throws error