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

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

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