diff --git a/test/SessionManagerTest.php b/test/SessionManagerTest.php index 9707cafe..4d99e143 100644 --- a/test/SessionManagerTest.php +++ b/test/SessionManagerTest.php @@ -588,4 +588,20 @@ public function testRemoteAddressValidationWillFailOnInvalidAddress() $this->setExpectedException('Zend\Session\Exception\RuntimeException', 'Session validation failed'); $this->manager->start(); } + + /** + * @runInSeparateProcess + */ + public function testRemoteAddressValidationWillSucceedWithValidPreSetData() + { + $_SESSION = array( + '__ZF' => array( + '_VALID' => array('Zend\Session\Validator\RemoteAddr' => ''), + ), + ); + + $this->manager->start(); + + $this->assertTrue($this->manager->isValid()); + } }