* SPDX-License-Identifier: MIT */ declare(strict_types=1); use Respect\Validation\Validator; test('Scenario #1', catchFullMessage(function (): void { Validator::callback('is_string')->between(1, 2)->setTemplate('{{name}} is not tasty')->assert('something'); }, fn(string $fullMessage) => expect($fullMessage)->toBe('- "something" is not tasty')));