Esempio n. 1
0
 /**
  * @group ZF-10542
  */
 public function testAllowNumericZeroAsValueForCompressionOptions()
 {
     $client = new Client();
     $this->assertNull($client->getCompressionOptions());
     $options = $client->getOptions();
     $this->assertArrayNotHasKey('compression', $options);
     $client->setCompressionOptions(SOAP_COMPRESSION_GZIP);
     $this->assertSame(SOAP_COMPRESSION_GZIP, $client->getCompressionOptions());
     $options = $client->getOptions();
     $this->assertSame(SOAP_COMPRESSION_GZIP, $options['compression']);
     $client->setCompressionOptions(null);
     $this->assertNull($client->getCompressionOptions());
     $options = $client->getOptions();
     $this->assertArrayNotHasKey('compression', $options);
 }