public function testDisableWsdlCache() { Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache(WSDL_CACHE_BOTH); $this->assertEquals(WSDL_CACHE_BOTH, Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::getWsdlCache()); // clear cache property Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache(null); $this->assertNull(Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::getWsdlCache()); }
/** * returns an array with configured options for this client * * @return array */ public function getClientOptions() { $options = array('soap_version' => SOAP_1_1); if (!empty($this->_classMap)) { $options['classmap'] = $this->_classMap; } $wsdlCache = Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::getWsdlCache(); if ($wsdlCache !== null) { $options['cache_wsdl'] = $wsdlCache; } return $options; }
public function testDisableWsdlCache() { if (!extension_loaded('soap')) { $this->markTestSkipped('SOAP extension is not loaded'); } Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache(WSDL_CACHE_BOTH); $this->assertEquals(WSDL_CACHE_BOTH, Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::getWsdlCache()); // clear cache property Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache(null); $this->assertNull(Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::getWsdlCache()); }