--CREDITS-- Henrique Moody --TEST-- setTemplate() with single validator should use template as main message --FILE-- setTemplate('{{name}} is not tasty'); try { $rule->assert('something'); } catch (NestedValidationException $e) { echo $e->getMessage(); } echo PHP_EOL; try { $rule->check('something'); } catch (NestedValidationException $e) { echo $e->getMessage(); } ?> --EXPECT-- "something" is not tasty "something" is not tasty