public function testSoapArray() { $clients = Client::Soap(static::$credentials[0], static::$credentials[1], static::$services); foreach ($clients as $key => $client) { $matchingServiceName = static::$services[$key]; $this->assertInstanceOf(SoapClient::ns() . "\\{$matchingServiceName}", $client); } }
protected static function createSoapClient($username, $password, $service, $wsdl, $options) { $serviceClass = SoapClient::ns() . "\\{$service}"; $client = new $serviceClass($wsdl, $options); return $client; }