insertedCount)->toBe(3) ->and($result->updatedCount)->toBe(4) ->and($result->errors)->toBe(['Invalid date at line 3']); }); it('throws when inserted count is negative', function (): void { // GIVEN + WHEN + THEN expect(fn () => new ImportEmployeesOutput(-1, 0, [])) ->toThrow(\InvalidArgumentException::class); }); it('throws when updated count is negative', function (): void { // GIVEN + WHEN + THEN expect(fn () => new ImportEmployeesOutput(0, -1, [])) ->toThrow(\InvalidArgumentException::class); }); it('throws when errors contain non string values', function (): void { // GIVEN + WHEN + THEN expect(fn () => new ImportEmployeesOutput(0, 0, ['ok', 123])) // @phpstan-ignore argument.type ->toThrow(\InvalidArgumentException::class); }); });