modif both stubs to fix phpunit errors