Expect::string()->required(), ]); $processor = new Processor; $processor->onNewContext[] = function (Context $context) { $context->path = ['first']; }; $e = checkValidationErrors(function () use ($schema, $processor) { $processor->process($schema, []); }, ["The mandatory item 'first\u{a0}›\u{a0}r' is missing."]); Assert::equal( [ new Nette\Schema\Message( 'The mandatory item %path% is missing.', Nette\Schema\Message::MissingItem, ['first', 'r'], ['isKey' => false] ), ], $e->getMessageObjects() ); });