WsdlToPhp\PackageGenerator\Tests\Model\StructTest::testGetContextualPartEnum PHP 메소드

testGetContextualPartEnum() 공개 메소드

    public function testGetContextualPartEnum()
    {
        $struct = self::instance('Foo', false);
        $struct->setIsRestriction(true);
        $this->assertEquals('EnumType', $struct->getContextualPart());
        $struct->setIsStruct(false);
        $this->assertEquals('EnumType', $struct->getContextualPart());
        $struct->setIsStruct(true);
        $this->assertEquals('EnumType', $struct->getContextualPart());
    }