Updated the caching framework to the according FLOW3 revision 2616
[Packages/TYPO3.CMS.git] / tests / t3lib / cache / backend / class.t3lib_cache_backend_mockbackend.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2009 Ingo Renner <ingo@typo3.org>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25
26 /**
27 * A caching backend which forgets everything immediately
28 * Used in t3lib_cache_FactoryTestCase
29 *
30 * This file is a backport from FLOW3
31 *
32 * @package TYPO3
33 * @subpackage tests
34 * @version $Id$
35 */
36 class t3lib_cache_backend_MockBackend extends t3lib_cache_backend_NullBackend {
37
38 /**
39 * @var mixed
40 */
41 protected $someOption;
42
43 /**
44 * Sets some option
45 *
46 * @param mixed $value
47 * @return void
48 * @author Robert Lemke <robert@typo3.org>
49 */
50 public function setSomeOption($value) {
51 $this->someOption = $value;
52 }
53
54 /**
55 * Returns the option value
56 *
57 * @return mixed
58 * @author Robert Lemke <robert@typo3.org>
59 */
60 public function getSomeOption() {
61 return $this->someOption;
62 }
63
64 }
65
66 ?>