phpunit mock method throw exception