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