CakeSessionFixture.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  4. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * Redistributions of files must retain the above copyright notice
  8. *
  9. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  10. * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
  11. * @package Cake.Test.Fixture
  12. * @since CakePHP(tm) v 2.3.0
  13. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  14. */
  15. /**
  16. * Fixture class for the default session configuration
  17. *
  18. * @package Cake.Test.Fixture
  19. */
  20. class CakeSessionFixture extends CakeTestFixture {
  21. /**
  22. * name property
  23. *
  24. * @var string
  25. */
  26. public $name = 'CakeSession';
  27. /**
  28. * fields property
  29. *
  30. * @var array
  31. */
  32. public $fields = array(
  33. 'id' => array('type' => 'string', 'length' => 128, 'key' => 'primary'),
  34. 'data' => array('type' => 'text','null' => true),
  35. 'expires' => array('type' => 'integer', 'length' => 11, 'null' => true)
  36. );
  37. /**
  38. * records property
  39. *
  40. * @var array
  41. */
  42. public $records = array();
  43. }