Replacing the usage of PHPUnit static mock on App::classname()