* SPDX-FileContributor: Henrique Moody */ declare(strict_types=1); test('Scenario #1', catchMessage( fn() => v::domain()->assert('batman'), fn(string $message) => expect($message)->toBe('"batman" must be an internet domain'), )); test('Scenario #2', catchMessage( fn() => v::not(v::domain())->assert('r--w.com'), fn(string $message) => expect($message)->toBe('"r--w.com" must not be an internet domain'), )); test('Scenario #3', catchFullMessage( fn() => v::domain()->assert('p-éz-.kk'), fn(string $fullMessage) => expect($fullMessage)->toBe('- "p-éz-.kk" must be an internet domain'), )); test('Scenario #4', catchFullMessage( fn() => v::not(v::domain())->assert('github.com'), fn(string $fullMessage) => expect($fullMessage)->toBe('- "github.com" must not be an internet domain'), ));