*/
function get_info() {
return array(
- 'name' => 'Rule Test',
+ 'name' => 'Rule Test',
'description' => 'Test the validation rules',
- 'group' => 'CiviCRM BAO Tests',
+ 'group' => 'CiviCRM BAO Tests',
);
}
*/
function integerDataProvider() {
return array(
- array(10, true),
- array('145E+3', false),
- array('10', true),
- array(-10, true),
- array('-10', true),
- array('-10foo', false),
+ array(10, TRUE),
+ array('145E+3', FALSE),
+ array('10', TRUE),
+ array(-10, TRUE),
+ array('-10', TRUE),
+ array('-10foo', FALSE),
);
}
*/
function positiveDataProvider() {
return array(
- array(10, true),
- array('145.0E+3', false),
- array('10', true),
- array(-10, false),
- array('-10', false),
- array('-10foo', false),
+ array(10, TRUE),
+ array('145.0E+3', FALSE),
+ array('10', TRUE),
+ array(-10, FALSE),
+ array('-10', FALSE),
+ array('-10foo', FALSE),
);
}
*/
function numericDataProvider() {
return array(
- array(10, true),
- array('145.0E+3', false),
- array('10', true),
- array(-10, true),
- array('-10', true),
- array('-10foo', false),
+ array(10, TRUE),
+ array('145.0E+3', FALSE),
+ array('10', TRUE),
+ array(-10, TRUE),
+ array('-10', TRUE),
+ array('-10foo', FALSE),
);
}
-
}