(NFC) Update version headers in `tests/`
[civicrm-core.git] / tests / phpunit / WebTest / Export / ExportCiviSeleniumTestCase.php
index a02778755066833fcc49f3acaa29d1e36a962c27..e7c20ba08b69b1724d0616771ffb7f55d9fae0af 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2018                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -41,7 +41,8 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
    * @param string $downloadDir
    *   Download dir.
    *
-   * @return string downloaded file path.
+   * @return string
+   *   downloaded file path.
    */
   public function downloadCSV($selector, $fileName = 'CiviCRM_Contact_Search.csv', $downloadDir = '/tmp') {
     // File download path.
@@ -55,7 +56,7 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
     $this->click($selector);
 
     // Wait for file to be downloaded
-    for ($i=1; $i<15; ++$i) {
+    for ($i = 1; $i < 15; ++$i) {
       sleep(2);
       if (file_exists($file)) {
         return $file;
@@ -77,13 +78,13 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
    *   Array of header and rows according to row index.
    *                              eg: array(
    *                                    1 => array(
-      // Row index 1
-   // column name 'First Name', value 'Jones'
+   * // Row index 1
+   // column name 'First Name', value 'Jones'
    *                                      'First Name' => 'Jones',
    *                                      'Last Name'  => 'Franklin'
    *                                    ),
    *                                    2 => array(
-      // Row index 2
+   * // Row index 2
    *                                      'First Name' => 'Rajan',
    *                                      'Last Name'  => 'mayekar'
    *                                    ),
@@ -160,4 +161,5 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
       @unlink($file);
     }
   }
+
 }