save(new Carrier( 0, $email, $company, $contactPerson, $phoneNumber, $notes, $loadProfile, $countriesServing, )); $useCase = new GetAllCarriers($repo); $response = $useCase->execute(); $this->assertEquals( [new Carrier( 0, $email, $company, $contactPerson, $phoneNumber, $notes, $loadProfile, $countriesServing, )], $response ); } public function test_get_zero_carriers(): void { $repo = new FakeCarrierRepository(); $useCase = new GetAllCarriers($repo); $response = $useCase->execute(); $this->assertEquals([], $response); } }