SessionFixture.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Short description for file.
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
  8. * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice
  12. *
  13. * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
  15. * @package cake.tests.fixtures
  16. * @since CakePHP(tm) v 1.2.0.4667
  17. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  18. */
  19. /**
  20. * Short description for class.
  21. *
  22. * @package cake.tests.fixtures
  23. */
  24. class SessionFixture extends CakeTestFixture {
  25. /**
  26. * name property
  27. *
  28. * @var string 'Session'
  29. * @access public
  30. */
  31. public $name = 'Session';
  32. /**
  33. * table property.
  34. *
  35. * @var string
  36. */
  37. // public $table = 'sessions';
  38. /**
  39. * fields property
  40. *
  41. * @var array
  42. * @access public
  43. */
  44. public $fields = array(
  45. 'id' => array('type' => 'string', 'length' => 255, 'key' => 'primary'),
  46. 'data' => array('type' => 'text','null' => true),
  47. 'expires' => array('type' => 'integer', 'length' => 11, 'null' => true)
  48. );
  49. /**
  50. * records property
  51. *
  52. * @var array
  53. * @access public
  54. */
  55. public $records = array();
  56. }