name)->toBe('Poulet Rôti 1kg') ->and($identification->number)->toBe('12345') ->and($identification->source)->toBe('LDC'); }); }); describe('Identification Value Object Domain Rules', function (): void { it('throws DomainException when name is empty', function (): void { // GIVEN, WHEN & THEN expect(fn () => new Identification(' ', '12345', 'LDC')) ->toThrow(\DomainException::class, 'Identification name must not be empty.'); }); it('throws DomainException when number is empty', function (): void { // GIVEN, WHEN & THEN expect(fn () => new Identification('Poulet Rôti', ' ', 'LDC')) ->toThrow(\DomainException::class, 'Identification number must not be empty.'); }); });