Merge pull request #15940 from seamuslee001/dev_financial_105
[civicrm-core.git] / tests / phpunit / CRM / Utils / HttpClientTest.php
index 4d1b1bf2cab63dec344b9528bc8a14202733ecb5..39ca92d8cb6a1a39edcdcf31c9e075255e82a74b 100644 (file)
@@ -14,7 +14,8 @@ class CRM_Utils_HttpClientTest extends CiviUnitTestCase {
   const SELF_SIGNED_HTTPS_REGEX = '/This is httpclienttest-selfsign\./';
 
   /**
-   * @var string path to which we can store temp file
+   * @var string
+   * Path to which we can store temp file
    */
   protected $tmpFile;
 
@@ -28,10 +29,10 @@ class CRM_Utils_HttpClientTest extends CiviUnitTestCase {
 
     $this->tmpFile = $this->createTempDir() . '/example.txt';
 
-    $result = civicrm_api('Setting', 'create', array(
+    $result = civicrm_api('Setting', 'create', [
       'version' => 3,
       'verifySSL' => TRUE,
-    ));
+    ]);
     $this->assertAPISuccess($result);
     $this->client = new CRM_Utils_HttpClient();
   }
@@ -61,10 +62,10 @@ class CRM_Utils_HttpClientTest extends CiviUnitTestCase {
   }
 
   public function testFetchHttps_invalid_noVerify() {
-    $result = civicrm_api('Setting', 'create', array(
+    $result = civicrm_api('Setting', 'create', [
       'version' => 3,
       'verifySSL' => FALSE,
-    ));
+    ]);
     $this->assertAPISuccess($result);
 
     $result = $this->client->fetch(self::SELF_SIGNED_HTTPS_URL, $this->tmpFile);
@@ -96,10 +97,10 @@ class CRM_Utils_HttpClientTest extends CiviUnitTestCase {
   }
 
   public function testGetHttps_invalid_noVerify() {
-    $result = civicrm_api('Setting', 'create', array(
+    $result = civicrm_api('Setting', 'create', [
       'version' => 3,
       'verifySSL' => FALSE,
-    ));
+    ]);
     $this->assertAPISuccess($result);
 
     list($status, $data) = $this->client->get(self::SELF_SIGNED_HTTPS_URL);