spec\Phpro\SoapClient\CodeGenerator\Rules\TypeMapRuleSpec::it_applies_a_specified_rule_to_known_types PHP Метод

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

public it_applies_a_specified_rule_to_known_types ( Phpro\SoapClient\CodeGenerator\Rules\RuleInterface $rule, TypeContext $context )
$rule Phpro\SoapClient\CodeGenerator\Rules\RuleInterface
$context Phpro\SoapClient\CodeGenerator\Context\TypeContext
    function it_applies_a_specified_rule_to_known_types(RuleInterface $rule, TypeContext $context)
    {
        $context->getType()->willReturn(new Type('MyNamespace', 'SomeType', []));
        $rule->apply($context)->shouldBeCalled();
        $this->apply($context);
    }