From: eileen Date: Wed, 11 May 2016 05:01:53 +0000 (+1200) Subject: Add extra info for the test that showed a fail. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=64087f9040bfdab42194d29aca4a539928aca6a2;p=civicrm-core.git Add extra info for the test that showed a fail. THis is kinda unrelated but if we can make it easier to make sense of or go away .. yay --- diff --git a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php index 6798bb93e4..70a0d2c280 100644 --- a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php +++ b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php @@ -335,8 +335,8 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase { $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'); } }