INFRA-132 - CRM_Utils_JSTest - Spacing errors
authorTim Otten <totten@civicrm.org>
Tue, 13 Jan 2015 00:30:59 +0000 (16:30 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 13 Jan 2015 00:32:26 +0000 (16:32 -0800)
tests/phpunit/CRM/Utils/JSTest.php

index d5a43bb545342d694f7dbd45cc0ee6fd0f7abfda..3be4a6009794638af845eddb8bc6c61faef3f9ea 100644 (file)
@@ -61,15 +61,14 @@ class CRM_Utils_JSTest extends CiviUnitTestCase {
       array(),
     );
     $cases[] = array(// with arg
-      '
-      public function whits() {
-        for (a in b) {
-          mitts("wallaby", function(zoo) {
-            alert(zoo + ts("Hello"))
-          });
-        }
-      }
-      ',
+      "\n" .
+      "public function whits() {\n" .
+      "  for (a in b) {\n" .
+      "    mitts(\"wallaby\", function(zoo) {\n" .
+      "      alert(zoo + ts(\"Hello\"))\n" .
+      "    });\n" .
+      "  }\n" .
+      "}\n",
       array('Hello'),
     );
     $cases[] = array(// duplicate