THis is kinda unrelated but if we can make it easier to make sense of or go away .. yay
$this->processor->doPayment($params);
}
catch (Exception $e) {
- $this->assertTrue(substr($e->getMessage(), 0, 32) == 'E00001: Internal Error Occurred.',
- 'AuthorizeNet failed for unknown reason.');
+ $this->assertTrue(strstr($e->getMessage(), 'E00001: Internal Error Occurred.'),
+ 'AuthorizeNet failed for unknown reason.' . $e->getMessage());
$this->markTestSkipped('AuthorizeNet test server is not in a good mood so we can\'t test this right now');
}
}