function it_can_apply_to_property_context(RuleInterface $subRule, PropertyContext $context) { $context->getProperty()->willReturn(new Property('MyProperty', 'string')); $subRule->appliesToContext($context)->willReturn(true); $this->appliesToContext($context)->shouldReturn(true); }