public function test18_cashOut()
 {
     $poker = new poker('fakehost');
     $poker->login('user', 'password');
     $poker->cashOut('moneyurl', 100, '');
     $this->assertEquals(-100, $poker->client->wallets[$poker->serial]);
     try {
         $poker->client->e_cash_out_info_answer = true;
         $poker->cashOut('moneyurl', 100, '');
     } catch (Exception $e) {
         if ($e->getCode() == poker::E_CASH_OUT_INFO_ANSWER) {
             return;
         }
         $this->fail('exception code ' . $e->getCode() . ' ' . $e->getMessage() . ' raised instead of expected poker::E_CASH_OUT_INFO_ANSWER');
     }
     $this->fail('no exception raised where E_CASH_OUT_INFO_ANSWER expected');
 }