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());
    }