Ejemplo n.º 1
0
 /**
  * @param string $intent
  * @throws \InvalidArgumentException
  */
 public function setIntent($intent)
 {
     Intent::checkValue($intent);
     $this->intent = $intent;
 }
Ejemplo n.º 2
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage The value [undefined_value] not exists in enum [Onend\PayPal\Common\Enum\Intent]
  */
 public function testCheckValue()
 {
     Intent::checkValue("sale");
     Intent::checkValue("authorize");
     Intent::checkValue("undefined_value");
 }