Merge pull request #17621 from colemanw/sortOptions
[civicrm-core.git] / tests / phpunit / CRM / Utils / GlobalStackTest.php
index 3c01c155f20095bd78f4421b790c06046eb154d8..7c9c45a86c23eb48f17fc2366ebab8886ae6cded 100644 (file)
@@ -2,6 +2,7 @@
 
 /**
  * Class CRM_Utils_GlobalStackTest
+ * @group headless
  */
 class CRM_Utils_GlobalStackTest extends CiviUnitTestCase {
 
@@ -21,13 +22,13 @@ class CRM_Utils_GlobalStackTest extends CiviUnitTestCase {
     $this->assertFalse(isset($_FOO['bang']));
     $this->assertEquals(1, $_EXTRA);
 
-    CRM_Utils_GlobalStack::singleton()->push(array(
-      '_FOO' => array(
+    CRM_Utils_GlobalStack::singleton()->push([
+      '_FOO' => [
         'bar' => 2,
         'bang' => 2,
-      ),
+      ],
       '_EXTRA' => 2,
-    ));
+    ]);
 
     $this->assertEquals(2, $_FOO['bar']);
     $this->assertEquals(1, $_FOO['whiz']);