--FILE-- setTemplate('WRONG EMAIL!!!!!!'))->assert(['email' => 'qwe']); } catch (NestedValidationException $exception) { print_r($exception->getMessages()); } ?> --EXPECTF-- Array ( [0] => WRONG EMAIL!!!!!! )