DragonBe\Vies\Vies::setWsdl PHP Method

setWsdl() public method

Sets the location of the WSDL for the VIES SOAP Service
public setWsdl ( string $wsdl ) : Vies
$wsdl string
return Vies
    public function setWsdl($wsdl)
    {
        $this->wsdl = $wsdl;
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @covers \DragonBe\Vies\Vies::setWsdl
  */
 public function testSettingCustomWsdl()
 {
     $wsdl = 'http://www.example.com/?wsdl';
     $vies = new Vies();
     $vies->setWsdl($wsdl);
     $actual = $vies->getWsdl();
     $this->assertSame($wsdl, $actual);
 }