Renamed client cache_wsdl option to cache_type
This commit is contained in:
@ -21,7 +21,7 @@ class SoapClientTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$soapClient = new SoapClient('foo.wsdl');
|
||||
$options = array(
|
||||
'cache_wsdl' => Cache::TYPE_DISK_MEMORY,
|
||||
'cache_type' => Cache::TYPE_DISK_MEMORY,
|
||||
'debug' => true,
|
||||
);
|
||||
$soapClient->setOptions($options);
|
||||
@ -67,7 +67,7 @@ class SoapClientTest extends \PHPUnit_Framework_TestCase
|
||||
$soapClient = new SoapClient('foo.wsdl', array('debug' => true));
|
||||
$this->assertEquals(array('cache_wsdl' => Cache::getType(), 'trace' => true), $soapClient->getSoapOptions());
|
||||
|
||||
$soapClient = new SoapClient('foo.wsdl', array('debug' => false, 'cache_wsdl' => Cache::TYPE_NONE));
|
||||
$soapClient = new SoapClient('foo.wsdl', array('debug' => false, 'cache_type' => Cache::TYPE_NONE));
|
||||
$this->assertEquals(array('cache_wsdl' => Cache::TYPE_NONE, 'trace' => false), $soapClient->getSoapOptions());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user