예제 #1
0
 /**
  * @expectedException SAccounts\AccountsException
  */
 public function testGetABalanceWithInvalidAccountTypeWillThrowException()
 {
     $ac = new AccountType(AccountType::DUMMY);
     $ac->balance(Factory::create('gbp'), Factory::create('gbp'));
 }
예제 #2
0
 /**
  * Get the account balance
  *
  * Returns the current account balance.
  *
  * @return Currency
  */
 public function getBalance()
 {
     return $this->type->balance($this->acDr, $this->acCr);
 }