. /** * @package Tests * @subpackage UnitTests * @copyright Copyright (C) 2010-2012 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ require_once 'SoapBase.php'; /** * Test fixture for calls with compression enabled */ class CompressionTest extends SoapBase { /** * A test case that tests the following: * *
If any of the calls performed with compression enabled will * fail, the test will fail in turn with a SoapFault.
*/ public function testGetIssueWithCompressionEnabled() { $issueToAdd = $this->getIssueToAdd( 'CompressionTest.testUpdateSummary' ); $issueId = $this->client->mc_issue_add( $this->userName, $this->password, $issueToAdd); $this->deleteAfterRun( $issueId ); $createdIssue = $this->client->mc_issue_get( $this->userName, $this->password, $issueId); } protected function extraSoapClientFlags() { return array('compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP); } }