UnsignedFixture.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  11. * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
  12. * @since 2.5.0
  13. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  14. */
  15. /**
  16. * Short description for class.
  17. *
  18. */
  19. class UnsignedFixture extends CakeTestFixture {
  20. /**
  21. * table property
  22. *
  23. * @var array
  24. */
  25. public $table = 'unsigned';
  26. /**
  27. * fields property
  28. *
  29. * @var array
  30. */
  31. public $fields = array(
  32. 'uinteger' => array('type' => 'integer', 'null' => '', 'default' => '1', 'length' => '8', 'key' => 'primary', 'unsigned' => true),
  33. 'integer' => array('type' => 'integer', 'length' => '8', 'unsigned' => false),
  34. 'udecimal' => array('type' => 'decimal', 'length' => '4', 'unsigned' => true),
  35. 'decimal' => array('type' => 'decimal', 'length' => '4'),
  36. 'biginteger' => array('type' => 'biginteger', 'length' => '20', 'default' => 3),
  37. 'ubiginteger' => array('type' => 'biginteger', 'length' => '20', 'default' => 3, 'unsigned' => true),
  38. 'float' => array('type' => 'float', 'length' => '4'),
  39. 'ufloat' => array('type' => 'float', 'length' => '4', 'unsigned' => true),
  40. 'string' => array('type' => 'string', 'length' => '4'),
  41. 'tableParameters' => array(
  42. 'engine' => 'MyISAM'
  43. )
  44. );
  45. /**
  46. * records property
  47. *
  48. * @var array
  49. */
  50. public $records = array();
  51. }