public function testPassingArrayToConstructorOverwritesSessionSuperglobal() { $_SESSION['foo'] = 'bar'; $array = array('foo' => 'FOO'); $storage = new SessionArrayStorage($array); $expected = array('foo' => 'FOO', '__ZF' => array('_REQUEST_ACCESS_TIME' => $storage->getRequestAccessTime())); $this->assertSame($expected, $_SESSION); }