public function mock($classOrInterface) { $mock = Mockery::mock($classOrInterface); $mock->shouldIgnoreMissing(); return $mock; }