diff --git a/tests/ZendTest/Validator/CsrfTest.php b/tests/ZendTest/Validator/CsrfTest.php index 27fe3127cd2..ccb6f526004 100644 --- a/tests/ZendTest/Validator/CsrfTest.php +++ b/tests/ZendTest/Validator/CsrfTest.php @@ -187,4 +187,13 @@ public function testSettingNewSessionContainerSetsHashInNewContainer() $test = $container->hash; // Doing this, as expiration hops are 1; have to grab on first access $this->assertEquals($hash, $test); } + + public function testCanValidateWithOldBehaviour() + { + $hash = $this->validator->getHash(); + + $validator = new Csrf(); + + $this->assertTrue($validator->isValid($hash)); + } }