$this->resolver->
resolve(['expires' =>
new \
DateTimeImmutable('-1 hour'
)]);
} public function testInvalidValueForPrototypeDefinition() { $this->
expectException(InvalidOptionsException::
class);
$this->
expectExceptionMessage('The value of the option "connections" is expected to be of type array of array, but is of type array of "string".'
);
$this->resolver
->
setDefault('connections',
static function DOptionsResolver
$resolver) { $resolver ->
setPrototype(true
) ->
setDefined(['table', 'user', 'password'
]) ;
}) ;
$this->resolver->
resolve(['connections' =>
['foo'
]]);
} public function testMissingOptionForPrototypeDefinition() { $this->
expectException(MissingOptionsException::
class);