tao-test/app/vendor/respect/validation/tests/integration/rules/optional-validate.phpt

19 lines
324 B
Plaintext
Raw Normal View History

2022-08-29 20:14:13 +02:00
--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Validator as v;
var_dump(v::alpha()->validate(''));
var_dump(v::alpha()->validate(null));
var_dump(v::optional(v::alpha())->validate(''));
var_dump(v::optional(v::alpha())->validate(null));
?>
--EXPECTF--
bool(false)
bool(false)
bool(true)
bool(true)