TestAppCacheEngine.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Test Suite Test App Cache Engine class.
  4. *
  5. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  6. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  7. *
  8. * Licensed under The MIT License
  9. * For full copyright and license information, please see the LICENSE.txt
  10. * Redistributions of files must retain the above copyright notice
  11. *
  12. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  13. * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
  14. * @since 1.3.0
  15. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  16. */
  17. /**
  18. * Class TestAppCacheEngine
  19. *
  20. */
  21. namespace TestApp\Cache\Engine;
  22. use Cake\Cache\CacheEngine;
  23. class TestAppCacheEngine extends CacheEngine {
  24. public function write($key, $value) {
  25. if ($key === 'fail') {
  26. return false;
  27. }
  28. }
  29. public function read($key) {
  30. }
  31. public function increment($key, $offset = 1) {
  32. }
  33. public function decrement($key, $offset = 1) {
  34. }
  35. public function delete($key) {
  36. }
  37. public function clear($check) {
  38. }
  39. public function clearGroup($group) {
  40. }
  41. }