Пример #1
0
 public function testGiroAccountTransaction()
 {
     $a = new \OOP\GiroAccount();
     $a->setCredit(2000);
     $a->deposit(220);
     $a->withdraw(1500);
     $this->assertEquals(-1280, $a->getAccountBalance());
     $this->assertEquals(false, $a->withdraw(1500));
 }