public function test19_cashOutCommit() { $poker = new poker('fakehost'); $poker->login('user', 'password'); $poker->cashOutCommit('1234'); try { $poker->client->e_cash_out_commit = true; $poker->cashOutCommit('1234'); } catch (Exception $e) { if ($e->getCode() == poker::E_CASH_OUT_COMMIT) { return; } $this->fail('exception code ' . $e->getCode() . ' ' . $e->getMessage() . ' raised instead of expected poker::E_CASH_OUT_COMMIT'); } $this->fail('no exception raised where E_CASH_OUT_COMMIT expected'); }