/**
  * {@inheritDoc}
  */
 public function onException(\Exception $exception, $request, ActionInterface $action = null)
 {
     $this->logger->debug(sprintf('[Payum] %d# %s::execute(%s) throws exception %s', $this->stackLevel, $action ? Humanify::value($action) : 'Payment', Humanify::request($request), Humanify::value($exception)));
     $this->stackLevel--;
 }
示例#2
0
 /**
  * @test
  */
 public function shouldReturnValueTypeIfNotObjectValueGivenOnValue()
 {
     $this->assertEquals('string', Humanify::value('foo'));
 }
 /**
  * @param ActionInterface $action
  * @param mixed $request
  *
  * @return RequestNotSupportedException
  */
 public static function createActionNotSupported(ActionInterface $action, $request)
 {
     return new self(sprintf('Action %s is not supported the request %s.', Humanify::value($action), Humanify::request($request)));
 }