From a06312143e0b654f427a4ac7b45ff1d57dfa6f89 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 20 Jun 2014 20:50:02 -0700 Subject: [PATCH] CRM_Utils_RuleTest - Autoformat --- tests/phpunit/CRM/Utils/RuleTest.php | 41 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/tests/phpunit/CRM/Utils/RuleTest.php b/tests/phpunit/CRM/Utils/RuleTest.php index 2649183e36..6fcde9f836 100644 --- a/tests/phpunit/CRM/Utils/RuleTest.php +++ b/tests/phpunit/CRM/Utils/RuleTest.php @@ -12,9 +12,9 @@ class CRM_Utils_RuleTest extends CiviUnitTestCase { */ function get_info() { return array( - 'name' => 'Rule Test', + 'name' => 'Rule Test', 'description' => 'Test the validation rules', - 'group' => 'CiviCRM BAO Tests', + 'group' => 'CiviCRM BAO Tests', ); } @@ -34,12 +34,12 @@ class CRM_Utils_RuleTest extends CiviUnitTestCase { */ 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), ); } @@ -55,12 +55,12 @@ class CRM_Utils_RuleTest extends CiviUnitTestCase { */ 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), ); } @@ -76,14 +76,13 @@ class CRM_Utils_RuleTest extends CiviUnitTestCase { */ 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), ); } - } -- 2.25.1