public function testAccountBalanceDeposits()
 {
     $bank_account = new BankAccount('15934903649620486', $this->pdo);
     $bank_account->depositMoney(100);
     $bank_account = new BankAccount('15936487230215067', $this->pdo);
     $bank_account->depositMoney(230);
     $bank_account = new BankAccount('12348612357236185', $this->pdo);
     $bank_account->depositMoney(24);
     $xml_dataset = new PHPUnit_Extensions_Database_DataSet_FlatXmlDataSet(dirname(__FILE__) . '/_files/bank-account-after-deposits.xml');
     PHPUnit_Extensions_Database_TestCase::assertDataSetsEqual($xml_dataset, $this->tester->getConnection()->createDataSet());
 }
 /**
  * @depends testBalanceIsInitiallyZero
  * @covers  BankAccount::depositMoney
  * @covers  BankAccount::setBalance
  */
 public function testDepositingMoneyWorks(BankAccount $ba)
 {
     $ba->depositMoney(1);
     $this->assertEquals(1, $ba->getBalance());
     return $ba;
 }