Your IP : 216.73.216.138


Current Path : /home/ereika83/www/wp-content/plugins/gravityformsstripe/includes/stripe-php/test/Stripe/
Upload File :
Current File : /home/ereika83/www/wp-content/plugins/gravityformsstripe/includes/stripe-php/test/Stripe/Error.php

<?php

class Stripe_ErrorTest extends UnitTestCase
{
  public function testCreation()
  {
    try {
      throw new Stripe_Error("hello", 500, "{'foo':'bar'}", array('foo' => '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());
    }
  }
}