X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FUtils%2FGlobalStackTest.php;h=7c9c45a86c23eb48f17fc2366ebab8886ae6cded;hb=49cbf5748ca9e5c335c6bf60d70c89fb8547830b;hp=1b4a9c5b3c2378bdb1df39efafd2e1fd5f08eab5;hpb=4c12c9b771bde931077f56685b632bd34504b238;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Utils/GlobalStackTest.php b/tests/phpunit/CRM/Utils/GlobalStackTest.php index 1b4a9c5b3c..7c9c45a86c 100644 --- a/tests/phpunit/CRM/Utils/GlobalStackTest.php +++ b/tests/phpunit/CRM/Utils/GlobalStackTest.php @@ -1,9 +1,8 @@ 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']);