soapVersion() 공개 정적인 메소드

public static soapVersion ( string $version ) : void
$version string
리턴 void
예제 #1
0
 /**
  * @param string $soapVersion
  * @return $this
  * @throws InvalidArgumentException
  */
 public function setSoapVersion($soapVersion)
 {
     IsValid::soapVersion($soapVersion);
     $this->soapVersion = $soapVersion;
     return $this;
 }
예제 #2
0
 /**
  * @test
  */
 public function shouldThrowExceptionWhenSoapVersionIsInValid()
 {
     //when
     try {
         IsValid::soapVersion('INVALID_SOAP_VERSION');
         $this->assertFalse(true, 'Triggered when exception is not throw');
     } catch (InvalidArgumentException $e) {
         //then
         $this->assertEquals('Invalid binding type [INVALID_SOAP_VERSION] available types: [SOAP_11, SOAP_12]', $e->getMessage());
         $this->assertInstanceOf('\\InvalidArgumentException', $e);
     }
 }