spec\Phpro\SoapClient\CodeGenerator\Rules\PropertynameMatchesRuleSpec::it_can_apply_if_subrule_does_not_apply PHP Метод

it_can_apply_if_subrule_does_not_apply() публичный Метод

public it_can_apply_if_subrule_does_not_apply ( Phpro\SoapClient\CodeGenerator\Rules\RuleInterface $subRule, PropertyContext $context )
$subRule Phpro\SoapClient\CodeGenerator\Rules\RuleInterface
$context Phpro\SoapClient\CodeGenerator\Context\PropertyContext
    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);
    }