/**
  * @depends testConstructor
  *
  * @param RequestFinancialOperationResult $financialOperationResult
  */
 public function testGettersSetters(RequestFinancialOperationResult $financialOperationResult)
 {
     $datetime = date_create("2014-03-15");
     $financialOperationResult->setAmount(2)->setCurrencyCode('USD')->setMerchantOperationID('operationid')->setStatusCode('statuscode')->setTimestamp($datetime)->setToken('token');
     $this->assertSame(2, $financialOperationResult->getAmount());
     $this->assertSame('USD', $financialOperationResult->getCurrencyCode());
     $this->assertSame('statuscode', $financialOperationResult->getStatusCode());
     $this->assertEquals($datetime, $financialOperationResult->getTimestamp());
     $this->assertSame('token', $financialOperationResult->getToken());
     $this->assertSame('operationid', $financialOperationResult->getMerchantOperationID());
 }
 public function financialOperationResult($arg0)
 {
     $result = new RequestFinancialOperationResult();
     $result->setAmount($arg0->amount)->setCurrencyCode($arg0->currencyCode)->setMerchantOperationID($arg0->merchantOperationID)->setStatusCode($arg0->statusCode)->setTimestamp(new \DateTime($arg0->timestamp))->setToken($arg0->token);
     call_user_func($this->callback, $result);
 }