function it_validates_deprecated_context($constraint, DeprecatedContext $context) { $context->getGroup()->shouldBeCalled(); $context->getRoot()->shouldBeCalled(); $context->validateValue('some value', $constraint->constraints, Argument::any(), Argument::any())->shouldBeCalled(); $this->initialize($context); $this->validate('some value', $constraint); }