/
home
/
techb158
/
exp.abdallabala.com
/
vendor
/
respect
/
validation
/
tests
/
integration
/
/home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/integration
mkdir
upload
Name
Size
Mode
Actions
readme/
-
0755
rm
rules/
-
0755
rm
assert-with-keys.phpt
1587
0644
edit
dl
rm
bsn_1.phpt
133
0644
edit
dl
rm
bsn_2.phpt
266
0644
edit
dl
rm
bsn_3.phpt
264
0644
edit
dl
rm
do_not_rely_on_nested_validation_exception_interface_for_check.phpt
668
0644
edit
dl
rm
exception_update.phpt
413
0644
edit
dl
rm
find_messages_should_apply_templates_to_flattened_messages.phpt
1784
0644
edit
dl
rm
find_messages_should_return_composite_validation_messages_flattened.phpt
1659
0644
edit
dl
rm
get_full_message_should_include_all_validation_messages_in_a_chain.phpt
478
0644
edit
dl
rm
get_messages_should_include_all_validation_messages_in_a_chain.phpt
885
0644
edit
dl
rm
issue-179.phpt
611
0644
edit
dl
rm
issue-425.phpt
617
0644
edit
dl
rm
issue-446.phpt
488
0644
edit
dl
rm
issue-619.phpt
346
0644
edit
dl
rm
issue-620.phpt
865
0644
edit
dl
rm
issue-689.phpt
1683
0644
edit
dl
rm
issue-690.phpt
1598
0644
edit
dl
rm
issue-719.phpt
837
0644
edit
dl
rm
issue-727.phpt
1161
0644
edit
dl
rm
issue-739.phpt
331
0644
edit
dl
rm
issue-799.phpt
1071
0644
edit
dl
rm
issue-805.phpt
395
0644
edit
dl
rm
issue-1033.phpt
630
0644
edit
dl
rm
issue_85_find_messages_should_not_trigger_catchable_fatal_error.phpt
764
0644
edit
dl
rm
keys_as_validator_names.phpt
684
0644
edit
dl
rm
not_should_work_by_builder.phpt
208
0644
edit
dl
rm
not_without_recursion.phpt
447
0644
edit
dl
rm
not_with_recursion.phpt
670
0644
edit
dl
rm
set_template_with_multiple_validators_should_use_template_as_full_message.phpt
461
0644
edit
dl
rm
set_template_with_multiple_validators_should_use_template_as_main_message.phpt
456
0644
edit
dl
rm
set_template_with_single_validator_should_use_template_as_main_message.phpt
644
0644
edit
dl
rm
should_not_overwrite_defined_names.phpt
912
0644
edit
dl
rm
translator-assert.phpt
924
0644
edit
dl
rm
translator-check.phpt
553
0644
edit
dl
rm
Edit:
/home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/integration/issue-689.phpt
(1683B)
--FILE-- <?php require 'vendor/autoload.php'; use Respect\Validation\Exceptions\NestedValidationException; use Respect\Validation\Validator as v; $input = [ 'organization' => [ 'name' => 'N', 'address' => 'A', ], 'contact' => [ 'name' => 'wd', 'email' => 'ffesfewf2232313123212', 'password' => ' ', 'position' => 'wdwdwf', 'number' => '£"!@£;21#£:"!:£~!":£\'21;', ], ]; try { v::create() ->key( 'organization', v::create() ->key('name', v::length(2, 50)->notEmpty()) ->key('address', v::length(2, 50)->notEmpty()) ) ->keyNested('contact.name', v::length(1, 50)->notEmpty()) ->keyNested('contact.email', v::email()->notEmpty()) ->keyNested('contact.password', v::length(3, 100)->notEmpty()) ->keyNested('contact.position', v::length(1, 100)->notEmpty()) ->keyNested('contact.number', v::phone()->notEmpty()) ->assert($input); } catch (NestedValidationException $exception) { print_r(array_filter($exception->findMessages([ 'organization.name' => 'Center name', 'organization.address' => 'Center address', 'contact.name' => 'Contact name', 'contact.password' => 'Contact name', 'contact.position' => 'Contact name', 'contact.number' => 'Contact name', 'contact.email' => 'Contact name', ]))); } ?> --EXPECTF-- Array ( [organization_name] => Center name [organization_address] => Center address [contact_password] => Contact name [contact_number] => Contact name [contact_email] => Contact name )
Save
cmd:
run