1 | <?php |
||
3 | class ProfileFixture extends CakeTestFixture { |
||
|
|||
4 | |||
5 | /** |
||
6 | * fields property |
||
7 | * |
||
8 | * @var array |
||
9 | */ |
||
10 | public $fields = array( |
||
11 | 'id' => array('type' => 'integer', 'key' => 'primary'), |
||
12 | 'user_id' => array('type' => 'integer', 'null' => true), |
||
13 | 'nickname' => array('type' => 'string', 'null' => true), |
||
14 | 'company' => array('type' => 'string', 'null' => true), |
||
15 | ); |
||
16 | |||
17 | /** |
||
18 | * records property |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | public $records = array( |
||
23 | array('user_id' => '3', 'nickname' => 'phpnut', 'company' => 'Cake Software Foundation, Inc.'), |
||
24 | ); |
||
25 | } |
||
26 | |||
27 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.