/** * @return Soap\SoapClient */ public function getSoapClient() { if (null === $this->soapClient) { $this->soapClient = Soap\SoapClientFactory::factory($this->wsdl); } return $this->soapClient; }
public function testShouldCreateASoapClientObject() { $soapClient = SoapClientFactory::factory($this->getWSDLPath()); $this->assertInstanceOf('Salesforce\\Soap\\SoapClientInterface', $soapClient); }