/
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-690.phpt
(1598B)
--FILE-- <?php require 'vendor/autoload.php'; use Respect\Validation\Exceptions\NestedValidationException; use Respect\Validation\Validator as v; $input = [ 'contact1' => [ 'daymark' => 'ffesfewf2232313123212', 'building' => [ 'enable' => 'd', 'blank' => 'ffesfewf2232313123212', 'powerdown' => '5', 'powerup' => 'wdwdwf', ], ], 'contact2' => [ 'name' => 'wd', 'daymark' => 'ffesfewf2232313123212', 'building' => [ 'enable' => '1', 'blank' => '1', 'powerdown' => '1', 'powerup' => '1', ], ], ]; try { v::create() ->each( v::create() ->key('name', v::length(1, 50)) ->key('daymark', v::length(1, 50)) ->key( 'building', v::create() ->key('enable', v::length(2, 50)) ->key('time', v::length(2, 50)) ->key('powerdown', v::length(2, 50)) ->key('powerup', v::length(2, 50)) ) ) ->assert($input); } catch (NestedValidationException $exception) { print_r(array_filter($exception->findMessages([ 'each.name' => 'Center name', 'each.building.enable' => 'Center time', 'each.building.powerdown' => 'Center time', ]))); } ?> --EXPECTF-- Array ( [each_name] => Center name [each_building_enable] => Center time [each_building_powerdown] => Center time )
Save
cmd:
run