Exemplo n.º 1
0
 /**
  * Tests the building of the account
  */
 public function testBuildAccountInfo()
 {
     $data = json_decode($this->fixture, true);
     $account = AccountInfoBuilder::buildAccountInfo($data);
     $this->assertInstanceOf('Ideneal\\OpenLoad\\Entity\\AccountInfo', $account);
     $this->assertEquals('*****@*****.**', $account->getEmail());
 }
Exemplo n.º 2
0
 /**
  * Returns the account info
  *
  * @return AccountInfo
  */
 public function getAccountInfo()
 {
     $params = $this->getAuthParams();
     $response = $this->processRequest('account/info', $params);
     $result = $this->processResponse($response);
     return AccountInfoBuilder::buildAccountInfo($result);
 }