Автор: Piotr Olaszewski (piotroo89@gmail.com)
Пример #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 shouldThrowExceptionWhenSetParameterStyleWrappedForRpc()
 {
     //when
     try {
         IsValid::parameterStyle(SoapBinding::WRAPPED, SoapBinding::RPC);
         $this->assertFalse(true, 'Triggered when exception is not throw');
     } catch (InvalidArgumentException $e) {
         //then
         $this->assertEquals('For RPC style parameters cannot be wrapped', $e->getMessage());
         $this->assertInstanceOf('\\InvalidArgumentException', $e);
     }
 }