Skip to content

Commit

Permalink
Remove tests related to useTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePastore committed Aug 24, 2018
1 parent 985354f commit de4fe44
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/ValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,32 +560,6 @@ function ($message) {
</email>
</person>',
),

//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,
),
),
);
}

Expand Down

0 comments on commit de4fe44

Please sign in to comment.