Merge pull request #17621 from colemanw/sortOptions
[civicrm-core.git] / tests / phpunit / CRM / Utils / GlobalStackTest.php
index 1b4a9c5b3c2378bdb1df39efafd2e1fd5f08eab5..7c9c45a86c23eb48f17fc2366ebab8886ae6cded 100644 (file)
@@ -1,9 +1,8 @@
 <?php
 
-require_once 'CiviTest/CiviUnitTestCase.php';
-
 /**
  * Class CRM_Utils_GlobalStackTest
+ * @group headless
  */
 class CRM_Utils_GlobalStackTest extends CiviUnitTestCase {
 
@@ -23,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']);