parameterStyle() public static méthode

public static parameterStyle ( string $parameterStyle, string $style ) : void
$parameterStyle string
$style string
Résultat void
 /**
  * @param string $parameterStyle
  * @return $this
  * @throws InvalidArgumentException
  */
 public function setParameterStyle($parameterStyle)
 {
     IsValid::parameterStyle($parameterStyle, $this->style);
     $this->parameterStyle = $parameterStyle;
     return $this;
 }
 /**
  * @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);
     }
 }