@@ -172,6 +172,7 @@ test(function () {
172172
173173test (function () {
174174 Assert::false (Validators::is ('' , 'email ' ));
175+ Assert::false (Validators::is (false , 'email ' ));
175176 Assert::false (Validators::is ('hello ' , 'email ' ));
176177 Assert::
true (Validators::
is (
'[email protected] ' ,
'email ' ));
177178 Assert::false (Validators::is ('hello@localhost ' , 'email ' ));
@@ -190,6 +191,7 @@ test(function () {
190191
191192test (function () {
192193 Assert::false (Validators::is ('' , 'url ' ));
194+ Assert::false (Validators::is (false , 'url ' ));
193195 Assert::false (Validators::is ('hello ' , 'url ' ));
194196 Assert::false (Validators::is ('nette.org ' , 'url ' ));
195197 Assert::false (Validators::is ('http://nette.org0 ' , 'url ' ));
@@ -216,6 +218,7 @@ test(function () {
216218
217219test (function () {
218220 Assert::false (Validators::is ('' , 'uri ' ));
221+ Assert::false (Validators::is (false , 'uri ' ));
219222 Assert::false (Validators::is ('hello ' , 'uri ' ));
220223 Assert::false (Validators::is ('nette.org ' , 'uri ' ));
221224 Assert::
false (Validators::
is (
'mailto: [email protected] ' ,
'uri ' ));
0 commit comments