public function testFindAll() { $repository = m::spy(TranslationRepository::class); $service = new TranslationService($repository); $service->findAll([]); $repository->shouldHaveReceived('getByCriteria')->with([])->once(); }