File: tests/SoapClient.php

Recommend this page to a friend!
  Classes of WsdlToPhp  >  Package Base  >  tests/SoapClient.php  >  Download  
File: tests/SoapClient.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Package Base
Base classes for implementing a package generator
Author: By
Last change: issue #32 - migrate to PHP >= 7.4
Date: 1 month ago
Size: 653 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

namespace
WsdlToPhp\PackageBase\Tests;

use
SoapFault;
use
WsdlToPhp\PackageBase\AbstractSoapClientBase;

class
SoapClient extends AbstractSoapClientBase
{
    public function
getSoapClientClassName(?string $soapClientClassName = null): string
   
{
        return
parent::getSoapClientClassName(empty($soapClientClassName) ? Client::class : $soapClientClassName);
    }

    public function
search()
    {
        try {
           
$this->getSoapClient()->search();
        } catch (
SoapFault $soapFault) {
           
$this->setResult(null);
           
$this->saveLastError(__METHOD__, $soapFault);
        }
    }
}


For more information send a message to info at phpclasses dot org.