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());
 }
예제 #2
0
 public function testGetClientOptionsWithWsdlCache()
 {
     $this->assertNull(Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache(WSDL_CACHE_BOTH));
     $options = $this->service->getClientOptions();
     $this->assertType('array', $options);
     $this->assertArrayHasKey('cache_wsdl', $options);
     $this->assertEquals(WSDL_CACHE_BOTH, $options['cache_wsdl']);
 }
 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());
 }
예제 #4
0
 public function testGetClientOptionsWithWsdlCache()
 {
     if (!extension_loaded('soap')) {
         $this->markTestSkipped('SOAP extension is not loaded');
     }
     $this->assertNull(Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache(WSDL_CACHE_BOTH));
     $options = $this->service->getClientOptions();
     $this->assertTrue(is_array($options));
     $this->assertArrayHasKey('cache_wsdl', $options);
     $this->assertEquals(WSDL_CACHE_BOTH, $options['cache_wsdl']);
 }