/**
  * @test
  *
  * @expectedException \Payum\Core\Exception\RequestNotSupportedException
  * @expectedExceptionMessage Action CreateChargeAction is not supported the request stdClass.
  */
 public function throwRequestNotSupportedIfNotSupportedGiven()
 {
     $action = new CreateChargeAction();
     $action->execute(new \stdClass());
 }
Exemplo n.º 2
0
 /**
  * @test
  *
  * @expectedException \Payum\Core\Exception\LogicException
  * @expectedExceptionMessage The token has already been used.
  */
 public function throwIfCardAlreadyUsed()
 {
     $action = new CreateChargeAction();
     $action->execute(new CreateCharge(['card' => ['foo']]));
 }