/** * @expectedException \Balanced\Errors\InsufficientFunds */ function testInsufficientFunds() { $marketplace = Marketplace::get(self::$marketplace->uri); $amount = $marketplace->in_escrow + 100; $credit = Credit::bankAccount($amount, array('name' => 'Homer Jay', 'account_number' => '112233a', 'routing_number' => '121042882', 'type' => 'checking'), 'something sour'); }