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