public static actonInstance ( ) : |
||
return |
/** * */ public function testGetAttributeRequired() { $wsdl = WsdlTest::actonInstance(); $binding = $wsdl->getContent()->getElementByNameAndAttributes(Wsdl::TAG_BINDING, array('name' => 'SoapBinding', 'type' => 'tns:SOAP')); $operation = $binding->getChildByNameAndAttributes(Wsdl::TAG_OPERATION, array('name' => 'list')); $sessionHeader = $operation->getChildByNameAndAttributes(Wsdl::TAG_HEADER, array('part' => 'SessionHeader')); $clusterHeader = $operation->getChildByNameAndAttributes(Wsdl::TAG_HEADER, array('part' => 'ClusterHeader')); $this->assertFalse($sessionHeader->getAttributeRequired()); $this->assertTrue($clusterHeader->getAttributeRequired()); }