src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/CLIExample.php
protected function callStepAndCheckForException($stepName, $args = array())
    {
        try {
            $response = call_user_func_array(array($this->exampleClass, $stepName), $args);
        } catch (OffAmazonPaymentsService_Exception $ex) {
            $this->printExceptionToCLI($ex, $stepName);
            throw $ex;
        }

        return $response;
    }
protected function callStepAndCheckForException($stepName, $args = array())
    {
        try {
            $response = call_user_func_array(array($this->exampleClass, $stepName), $args);
        } catch (OffAmazonPaymentsService_Exception $ex) {
            $this->printExceptionToCLI($ex, $stepName);
            throw $ex;
        }

        return $response;
    }
protected function callStepAndCheckForException ( $ stepName , $ args = array ( ) ) { try { $ response = call_user_func_array ( array ( $ this -> exampleClass , $ stepName ) , $ args ) ; } catch ( OffAmazonPaymentsService_Exception $ ex ) { $ this -> printExceptionToCLI ( $ ex , $ stepName ) ; throw $ ex ; } return $ response ; }
Call the desired setp and check that it does not throw an
exception

@param string $stepName the name of the step to call on the example class

@return mixed the response object from the step, or an exception if thrown
Call the desired setp and check that it does not throw an exception