Inheritance: implements ContextInterface
 function it_can_apply_to_property_context(RuleInterface $subRule, PropertyContext $context)
 {
     $context->getType()->willReturn(new Type('MyNamespace', 'TypeName', []));
     $subRule->appliesToContext($context)->willReturn(true);
     $this->appliesToContext($context)->shouldReturn(true);
 }
 function it_can_apply_if_subrule_does_not_apply(RuleInterface $subRule, PropertyContext $context)
 {
     $context->getProperty()->willReturn(new Property('MyProperty', 'string'));
     $subRule->appliesToContext($context)->willReturn(false);
     $this->appliesToContext($context)->shouldReturn(false);
 }