UnsignedFixture.php 1.8 KB

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