diff --git a/tests/PHPCurlClass/PHPCurlClassTest.php b/tests/PHPCurlClass/PHPCurlClassTest.php index 2f843ca..1b1ed39 100644 --- a/tests/PHPCurlClass/PHPCurlClassTest.php +++ b/tests/PHPCurlClass/PHPCurlClassTest.php @@ -1107,8 +1107,14 @@ class CurlTest extends \PHPUnit\Framework\TestCase $this->assertTrue($test->curl->error); $this->assertTrue($test->curl->curlError); $possible_errors = array(CURLE_SEND_ERROR, CURLE_OPERATION_TIMEOUTED); - $this->assertTrue(in_array($test->curl->errorCode, $possible_errors, true)); - $this->assertTrue(in_array($test->curl->curlErrorCode, $possible_errors, true)); + $this->assertTrue( + in_array($test->curl->errorCode, $possible_errors, true), + 'errorCode: ' . $test->curl->errorCode + ); + $this->assertTrue( + in_array($test->curl->curlErrorCode, $possible_errors, true), + 'curlErrorCode: ' . $test->curl->curlErrorCode + ); } public function testErrorMessage() diff --git a/tests/PHPCurlClass/PHPMultiCurlClassTest.php b/tests/PHPCurlClass/PHPMultiCurlClassTest.php index 3cb57a4..74af196 100644 --- a/tests/PHPCurlClass/PHPMultiCurlClassTest.php +++ b/tests/PHPCurlClass/PHPMultiCurlClassTest.php @@ -602,8 +602,14 @@ class MultiCurlTest extends \PHPUnit\Framework\TestCase \PHPUnit\Framework\Assert::assertTrue($instance->curlError); \PHPUnit\Framework\Assert::assertFalse($instance->httpError); $possible_errors = array(CURLE_SEND_ERROR, CURLE_OPERATION_TIMEOUTED); - \PHPUnit\Framework\Assert::assertTrue(in_array($instance->errorCode, $possible_errors, true)); - \PHPUnit\Framework\Assert::assertTrue(in_array($instance->curlErrorCode, $possible_errors, true)); + \PHPUnit\Framework\Assert::assertTrue( + in_array($instance->errorCode, $possible_errors, true), + 'errorCode: ' . $instance->errorCode + ); + \PHPUnit\Framework\Assert::assertTrue( + in_array($instance->curlErrorCode, $possible_errors, true), + 'curlErrorCode: ' . $instance->curlErrorCode + ); }); $multi_curl->addDelete(Test::ERROR_URL);