public function testAlterAccount() { // There is no special alter method, add is used $p = new ChartOfAccounts(); $a = new Account('1920', 'T', 'Bank'); $p->addAccount($a); $this->assertEquals($a, $p->getAccount('1920')); $a = new Account('1920', 'T', 'Altered'); $p->addAccount($a); $this->assertEquals($a, $p->getAccount('1920')); }