/** * Test init method */ public function testInit() { $this->transport->expects($this->once())->method('getSoapClient')->will($this->returnValue($this->soapClientMock)); $this->settings->set('wsdl_url', 'http://localhost.not.exists/?wsdl'); try { $this->transport->init($this->transportEntity); } catch (\SoapFault $e) { $this->assertNotEmpty($e->getMessage()); } $this->transport->call('test'); $this->assertEmpty($this->transport->getLastRequest()); $this->assertEmpty($this->transport->getLastResponse()); }