From: Gunnar Wrobel Date: Wed, 3 Nov 2010 17:51:49 +0000 (+0100) Subject: Started validation testing. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1752584c151bd6f6e3ebee23957439babdaf1edf;p=horde.git Started validation testing. --- 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