test with phpunit mock