Esempio n. 1
0
 /**
  * Set up before each test
  */
 public function setUp()
 {
     // Get SOAP setting from container parameters
     $options = array('trace' => true, 'encoding' => 'UTF-8', 'soap_version' => SOAP_1_2, 'login' => 'geschaeftskunden_api', 'password' => 'Dhl_ep_test1', 'location' => 'https://cig.dhl.de/services/sandbox/soap');
     // Create mock client from local WSDL file
     $wsdlFile = realpath(__DIR__ . '/../../Resources/geschaeftskundenversand-api-1.0.wsdl');
     $this->client = $this->getMockFromWsdl($wsdlFile, 'DhlApi', '', array('__soapCall'), false, $options);
     $logger = new Logger('DhlApi');
     $this->connection = new Connection($this->client);
     $this->connection->setLogger($logger);
 }