| 12345 |
anikendra |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Short description for file.
|
|
|
4 |
*
|
|
|
5 |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
|
6 |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
7 |
*
|
|
|
8 |
* Licensed under The MIT License
|
|
|
9 |
* For full copyright and license information, please see the LICENSE.txt
|
|
|
10 |
* Redistributions of files must retain the above copyright notice.
|
|
|
11 |
*
|
|
|
12 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
13 |
* @link http://cakephp.org CakePHP(tm) Project
|
|
|
14 |
* @package Cake.Test.Fixture
|
|
|
15 |
* @since CakePHP(tm) v 1.2.0.7026
|
|
|
16 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
|
17 |
*/
|
|
|
18 |
|
|
|
19 |
/**
|
|
|
20 |
* Short description for class.
|
|
|
21 |
*
|
|
|
22 |
* @package Cake.Test.Fixture
|
|
|
23 |
*/
|
|
|
24 |
class DatatypeFixture extends CakeTestFixture {
|
|
|
25 |
|
|
|
26 |
/**
|
|
|
27 |
* Fields property
|
|
|
28 |
*
|
|
|
29 |
* @var array
|
|
|
30 |
*/
|
|
|
31 |
public $fields = array(
|
|
|
32 |
'id' => array('type' => 'integer', 'null' => false, 'default' => 0, 'key' => 'primary'),
|
|
|
33 |
'float_field' => array('type' => 'float', 'length' => '5,2', 'null' => false, 'default' => null),
|
|
|
34 |
'decimal_field' => array('type' => 'decimal', 'length' => '6,3', 'default' => '0.000'),
|
|
|
35 |
'huge_int' => array('type' => 'biginteger'),
|
|
|
36 |
'bool' => array('type' => 'boolean', 'null' => false, 'default' => false),
|
|
|
37 |
);
|
|
|
38 |
|
|
|
39 |
/**
|
|
|
40 |
* Records property
|
|
|
41 |
*
|
|
|
42 |
* @var array
|
|
|
43 |
*/
|
|
|
44 |
public $records = array(
|
|
|
45 |
array('id' => 1, 'float_field' => 42.23, 'huge_int' => '1234567891234567891', 'bool' => 0),
|
|
|
46 |
);
|
|
|
47 |
}
|