DataTestFixture.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Short description for file.
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  8. * Copyright 2005-2012, 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-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
  15. * @package Cake.Test.Fixture
  16. * @since CakePHP(tm) v 1.2.0.6700
  17. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  18. */
  19. /**
  20. * Short description for class.
  21. *
  22. * @package Cake.Test.Fixture
  23. */
  24. class DataTestFixture extends CakeTestFixture {
  25. /**
  26. * Name property
  27. *
  28. * @var string 'DataTest'
  29. */
  30. public $name = 'DataTest';
  31. /**
  32. * Fields property
  33. *
  34. * @var array
  35. */
  36. public $fields = array(
  37. 'id' => array('type' => 'integer', 'key' => 'primary'),
  38. 'count' => array('type' => 'integer', 'default' => 0),
  39. 'float' => array('type' => 'float', 'default' => 0),
  40. 'created' => array('type' => 'datetime', 'default' => null),
  41. 'updated' => array('type' => 'datetime', 'default' => null)
  42. );
  43. /**
  44. * Records property
  45. *
  46. * @var array
  47. */
  48. public $records = array(
  49. array(
  50. 'count' => 2,
  51. 'float' => 2.4,
  52. 'created' => '2010-09-06 12:28:00',
  53. 'updated' => '2010-09-06 12:28:00'
  54. )
  55. );
  56. }