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');