/home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/integration
Edit: /home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/integration/issue-179.phpt (611B)
--FILE--
'my_host',
'password' => 'my_password',
'schema' => 'my_schema',
];
$validator = v::arrayType()
->setName('Settings')
->key('host', v::stringType())
->key('user', v::stringType())
->key('password', v::stringType())
->key('schema', v::stringType());
try {
$validator->assert($config);
} catch (AllOfException $exception) {
echo $exception->getFullMessage().PHP_EOL;
}
?>
--EXPECTF--
- Key user must be present