Exemplo n.º 1
0
 public function testSetPersistence()
 {
     $server = new Server\Server();
     $this->assertNull($server->getPersistence());
     $server->setPersistence(SOAP_PERSISTENCE_SESSION);
     $this->assertEquals(SOAP_PERSISTENCE_SESSION, $server->getPersistence());
     try {
         $server->setSoapVersion('bogus');
         $this->fail('Invalid soap versions should fail');
     } catch (\Exception $e) {
         // success
     }
     $server->setPersistence(SOAP_PERSISTENCE_REQUEST);
     $this->assertEquals(SOAP_PERSISTENCE_REQUEST, $server->getPersistence());
 }