Migrating from phpunit mocking framework to mockery

Signed-off-by: RedChrome <redchrome@gmx.de>