/** * @group ZF-5944 */ public function testOnlyPublicPropertiesAreDiscoveredByStrategy() { $this->strategy->addComplexType('\\ZendTest\\Soap\\Wsdl\\PublicPrivateProtected'); $xml = $this->wsdl->toXML(); $this->assertNotContains(PublicPrivateProtected::PROTECTED_VAR_NAME, $xml); $this->assertNotContains(PublicPrivateProtected::PRIVATE_VAR_NAME, $xml); }
/** * @group ZF-5944 */ public function testOnlyPublicPropertiesAreDiscoveredByStrategy() { $this->strategy->addComplexType("Zend_Soap_Wsdl_DefaultComplexTypeTest_PublicPrivateProtected"); $xml = $this->wsdl->toXML(); $this->assertNotContains(Zend_Soap_Wsdl_DefaultComplexTypeTest_PublicPrivateProtected::PROTECTED_VAR_NAME, $xml); $this->assertNotContains(Zend_Soap_Wsdl_DefaultComplexTypeTest_PublicPrivateProtected::PRIVATE_VAR_NAME, $xml); }
/** * @group ZF-5736 */ public function testHtmlAmpersandInUrlInSetUriIsEncodedCorrectly() { $wsdl = new Zend_Soap_Wsdl("MyService", "http://example.com"); $wsdl->setUri(self::URI_WITH_EXPANDED_AMP); $this->assertContains(self::URI_WITH_EXPANDED_AMP, $wsdl->toXML()); }