From de4fe44036ef8272798581f17ea0dae9e0bb9f19 Mon Sep 17 00:00:00 2001 From: Davide Pastore Date: Fri, 24 Aug 2018 13:29:48 +0200 Subject: [PATCH] Remove tests related to useTemplate --- tests/ValidationTest.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/tests/ValidationTest.php b/tests/ValidationTest.php index 14e2315..cb3e7f3 100644 --- a/tests/ValidationTest.php +++ b/tests/ValidationTest.php @@ -560,32 +560,6 @@ function ($message) { ', ), - - //With useTemplate options on - array( - array( - 'hostname' => v::regex('/^[a-zA-Z]([-.a-zA-Z0-9]{0,61}[a-zA-Z0-9]){0,1}$/')->setTemplate('Hostname {{name}} is not valid'), - 'entry' => v::regex('/^[a-zA-Z]$/')->setTemplate('Entry {{name}} should contain only letters'), - ), - null, - true, - array( - 'hostname' => array( - 'Hostname ".justAnInvalidHostname.lol" is not valid', - ), - 'entry' => array( - 'Entry "123" should contain only letters', - ), - ), - 'JSON', - array( - 'hostname' => '.justAnInvalidHostname.lol', - 'entry' => '123', - ), - array( - 'useTemplate' => true, - ), - ), ); }