public function testCanGetValuesAsClassesUsingStaticMethods()
 {
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::REAL());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::CR());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::DR());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::ASSET());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::BANK());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::CUSTOMER());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::EXPENSE());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::INCOME());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::LIABILITY());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::EQUITY());
     $this->assertInstanceOf('SAccounts\\AccountType', AccountType::SUPPLIER());
 }
示例#2
0
 public function accountTypesThatHaveBalance()
 {
     return [[AccountType::DR()], [AccountType::CR()], [AccountType::ASSET()], [AccountType::LIABILITY()], [AccountType::BANK()], [AccountType::CUSTOMER()], [AccountType::EQUITY()], [AccountType::EXPENSE()], [AccountType::INCOME()], [AccountType::SUPPLIER()]];
 }
示例#3
0
 public function invalidAccountTypes()
 {
     return array(array(AccountType::ASSET()), array(AccountType::BANK()), array(AccountType::CUSTOMER()), array(AccountType::EQUITY()), array(AccountType::EXPENSE()), array(AccountType::INCOME()), array(AccountType::LIABILITY()), array(AccountType::REAL()), array(AccountType::SUPPLIER()));
 }