From 1752584c151bd6f6e3ebee23957439babdaf1edf Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Wed, 3 Nov 2010 18:51:49 +0100 Subject: [PATCH] Started validation testing. --- framework/Nonce/test/Horde/Nonce/Integration/NonceTest.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/framework/Nonce/test/Horde/Nonce/Integration/NonceTest.php b/framework/Nonce/test/Horde/Nonce/Integration/NonceTest.php index 31f385cf7..f02a6eb61 100644 --- a/framework/Nonce/test/Horde/Nonce/Integration/NonceTest.php +++ b/framework/Nonce/test/Horde/Nonce/Integration/NonceTest.php @@ -38,10 +38,21 @@ extends Horde_Nonce_StoryTestCase /** * @scenario */ - public function aDefaultNonceHasADefinedLengthOf() + public function aDefaultNonceHasADefinedLengthOfEightBytes() { $this->given('the default nonce setup') ->when('retrieving a nonce') ->then('the nonce has a length of 8 bytes'); } + + /** + * @scenario + */ + public function aNonceWillBeInvalidIfItHasTimedOut() + { + $this->given('the default nonce setup') + ->when('retrieving a nonce') + ->and('waiting for the tenth of a second') + ->then('the nonce is invalid given a timeout of a twentieth of a second'); + } } \ No newline at end of file -- 2.11.0