X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fphpunit%2FCRM%2FUtils%2FGlobalStackTest.php;h=3c01c155f20095bd78f4421b790c06046eb154d8;hb=0eea664b7d0187f1287c6319702702e5d06a6891;hp=685cfce14b2cabb3b0391b2466372caaaefb2bfd;hpb=7791c05ff3b621589d135f3a01189d7f0a563db9;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Utils/GlobalStackTest.php b/tests/phpunit/CRM/Utils/GlobalStackTest.php index 685cfce14b..3c01c155f2 100644 --- a/tests/phpunit/CRM/Utils/GlobalStackTest.php +++ b/tests/phpunit/CRM/Utils/GlobalStackTest.php @@ -1,39 +1,45 @@ assertEquals(1, $FOO['bar']); - $this->assertEquals(1, $FOO['whiz']); - $this->assertFalse(isset($FOO['bang'])); - $this->assertEquals(1, $EXTRA); + $this->assertEquals(1, $_FOO['bar']); + $this->assertEquals(1, $_FOO['whiz']); + $this->assertFalse(isset($_FOO['bang'])); + $this->assertEquals(1, $_EXTRA); CRM_Utils_GlobalStack::singleton()->push(array( - 'FOO' => array( + '_FOO' => array( 'bar' => 2, 'bang' => 2, ), - 'EXTRA' => 2, + '_EXTRA' => 2, )); - $this->assertEquals(2, $FOO['bar']); - $this->assertEquals(1, $FOO['whiz']); - $this->assertEquals(2, $FOO['bang']); - $this->assertEquals(2, $EXTRA); + $this->assertEquals(2, $_FOO['bar']); + $this->assertEquals(1, $_FOO['whiz']); + $this->assertEquals(2, $_FOO['bang']); + $this->assertEquals(2, $_EXTRA); CRM_Utils_GlobalStack::singleton()->pop(); - $this->assertEquals(1, $FOO['bar']); - $this->assertEquals(1, $FOO['whiz']); - $this->assertEquals(NULL, $FOO['bang']); - $this->assertEquals(1, $EXTRA); + $this->assertEquals(1, $_FOO['bar']); + $this->assertEquals(1, $_FOO['whiz']); + $this->assertEquals(NULL, $_FOO['bang']); + $this->assertEquals(1, $_EXTRA); } + }