value)->toBe('Mainos Oy'); }); it('accepts a name of maximum length', function () { expect(mb_strlen((new CustomerName(str_repeat('รค', 255)))->value))->toBe(255); }); it('rejects an empty or too long name', function (string $name) { new CustomerName($name); })->throws(InvalidCustomerName::class)->with([ 'empty' => [''], 'only whitespace' => [' '], 'too long' => [str_repeat('a', 256)], ]);