$expects('inContext'
)->
willReturn($expected =
$this->
createMock(ContextualValidatorInterface::
class));
$this->
assertSame($expected,
$validator->
inContext($this->
createMock(ExecutionContextInterface::
class)), 'returns original validator inContext() result'
);
$expects('startContext'
)->
willReturn($expected =
$this->
createMock(ContextualValidatorInterface::
class));
$this->
assertSame($expected,
$validator->
startContext(), 'returns original validator startContext() result'
);
$expects('validate'
)->
willReturn($expected =
new ConstraintViolationList());
$this->
assertSame($expected,
$validator->
validate('value'
), 'returns original validator validate() result'
);
$expects('validateProperty'
)->
willReturn($expected =
new ConstraintViolationList());
$this->
assertSame($expected,
$validator->
validateProperty(new \
stdClass(), 'property'
), 'returns original validator validateProperty() result'
);
$expects('validatePropertyValue'
)->
willReturn($expected =
new ConstraintViolationList());
$this->
assertSame($expected,
$validator->
validatePropertyValue(new \
stdClass(), 'property', 'value'
), 'returns original validator validatePropertyValue() result'
);
}}