d69c58e96ebae41fd161bbdd192132bc0c503240
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / FormProtection / Fixtures / FormProtectionTesting.php
1 <?php
2 namespace TYPO3\CMS\Core\Tests\Unit\FormProtection\Fixtures;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 2010-2013 Oliver Klee <typo3-coding@oliverklee.de>
8 * All rights reserved
9 *
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
18 *
19 * This script is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * This copyright notice MUST APPEAR in all copies of the script!
25 ***************************************************************/
26
27 /**
28 * Class \TYPO3\CMS\Core\Tests\Unit\FormProtection\Fixtures\FormProtectionTesting.
29 *
30 * This is a testing subclass of the abstract \TYPO3\CMS\Core\FormProtection\AbstractFormProtection
31 * class.
32 *
33 * @author Oliver Klee <typo3-coding@oliverklee.de>
34 */
35 class FormProtectionTesting extends \TYPO3\CMS\Core\FormProtection\AbstractFormProtection {
36
37 /**
38 * Creates or displayes an error message telling the user that the submitted
39 * form token is invalid.
40 *
41 * @return void
42 */
43 protected function createValidationErrorMessage() {
44
45 }
46
47 /**
48 * Retrieves all saved tokens.
49 *
50 * @return string The saved token
51 */
52 protected function retrieveSessionToken() {
53 return $this->sessionToken = $this->generateSessionToken();
54 }
55
56 /**
57 * Saves the tokens so that they can be used by a later incarnation of this
58 * class.
59 *
60 * @return void
61 */
62 public function persistSessionToken() {
63
64 }
65
66 }