'bar')); $this->fail("Did not raise error"); } catch (Stripe_Error $e) { $this->assertEqual("hello", $e->getMessage()); $this->assertEqual(500, $e->getHttpStatus()); $this->assertEqual("{'foo':'bar'}", $e->getHttpBody()); $this->assertEqual(array('foo' => 'bar'), $e->getJsonBody()); } } }