public function testSetSoapClient() { $clientMock = $this->getMock('SoapClient', array('__setCookie'), array(null, array('uri' => 'http://www.zend.com', 'location' => 'http://www.zend.com'))); $soap = new Client(); $soap->setSoapClient($clientMock); $this->assertSame($clientMock, $soap->getSoapClient()); }
/** * @expectedException \Zend\Soap\Exception\UnexpectedValueException * @dataProvider dataProviderForInitSoapClientObjectException */ public function testInitSoapClientObjectException($wsdl, $options) { $client = new Client($wsdl, $options); $client->getSoapClient(); }