Started validation testing.
authorGunnar Wrobel <p@rdus.de>
Wed, 3 Nov 2010 17:51:49 +0000 (18:51 +0100)
committerGunnar Wrobel <p@rdus.de>
Tue, 30 Nov 2010 12:48:24 +0000 (13:48 +0100)
framework/Nonce/test/Horde/Nonce/Integration/NonceTest.php

index 31f385c..f02a6eb 100644 (file)
@@ -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