/** * 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()); }
/** * 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); }