From bb7ef236c5eb12ecbfb654d7dc803aeaf3ed6b35 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 24 Mar 2025 21:43:38 +0100 Subject: [PATCH] Fix travis --- test/phpunit/RestAPIDocumentTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/phpunit/RestAPIDocumentTest.php b/test/phpunit/RestAPIDocumentTest.php index da53e937c5a..b8279b9f735 100644 --- a/test/phpunit/RestAPIDocumentTest.php +++ b/test/phpunit/RestAPIDocumentTest.php @@ -110,7 +110,7 @@ class RestAPIDocumentTest extends AbstractRestAPITest $object2 = json_decode($result2['content'], true); //$this->assertNotNull($object2, 'Parsing of json result must not be null'); $this->assertEquals('200', $result2['http_code'], 'Return code must be 200'); - $this->assertEquals($result2['curl_error_no'], ''); + $this->assertEquals(0, $result2['curl_error_no']); $this->assertEquals($object2, 'mynewfile.txt', 'Must contains basename of file'); @@ -139,7 +139,7 @@ class RestAPIDocumentTest extends AbstractRestAPITest $object3 = json_decode($result3['content'], true); //$this->assertNotNull($object2, 'Parsing of json result must not be null'); $this->assertEquals('200', $result3['http_code'], 'Return code must be 200'); - $this->assertEquals($result3['curl_error_no'], ''); + $this->assertEquals(0, $result3['curl_error_no']); $this->assertEquals($object3, 'mynewfile.txt', 'Must contains basename of file');