Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
#6366 - session data should be preserved during session initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pivetta <[email protected]>
  • Loading branch information
Ocramius authored and weierophinney committed Jan 14, 2015
1 parent 3fdc7ba commit 97571c3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ZendTest/Session/SessionManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,19 @@ public function testSessionValidationDoesNotHaltOnNoopListener()
$this->assertTrue($this->manager->isValid());
}

/**
* @runInSeparateProcess
*/
public function testProducedSessionManagerWillNotReplaceSessionSuperGlobalValues()
{
$_SESSION['foo'] = 'bar';

$this->manager->start();

$this->assertArrayHasKey('foo', $_SESSION);
$this->assertSame('bar', $_SESSION['foo']);
}

/**
* @runInSeparateProcess
*/
Expand Down

0 comments on commit 97571c3

Please sign in to comment.