Example #1
0
    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());
    }
Example #2
0
 /**
  * @expectedException \Zend\Soap\Exception\UnexpectedValueException
  * @dataProvider dataProviderForInitSoapClientObjectException
  */
 public function testInitSoapClientObjectException($wsdl, $options)
 {
     $client = new Client($wsdl, $options);
     $client->getSoapClient();
 }