From 43003df678e2d954dbf523dfae25d6c5f1e00fb3 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Fri, 27 Sep 2013 14:20:12 -0700 Subject: [PATCH] CRM-13460 - Add is_numeric checks and test coverage ---------------------------------------- * CRM-13460: Make the numeric rule checks stricter http://issues.civicrm.org/jira/browse/CRM-13460 --- tests/phpunit/CRM/Utils/TypeTest.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/tests/phpunit/CRM/Utils/TypeTest.php b/tests/phpunit/CRM/Utils/TypeTest.php index a034e40ff2..e0a2a9f7d4 100644 --- a/tests/phpunit/CRM/Utils/TypeTest.php +++ b/tests/phpunit/CRM/Utils/TypeTest.php @@ -39,24 +39,4 @@ class CRM_Utils_TypeTest extends CiviUnitTestCase { array('-10foo', 'Positive', NULL), ); } - - /** - * @dataProvider numericDataProvider - */ - function testNumeric($inputData, $expectedResult) { - $this->assertEquals($expectedResult, CRM_Utils_Rule::numeric($inputData, $inputType)); - } - - function numericDataProvider() { - return array( - array(10, true), - array('145.0E+3', false), - array('10', true), - array(-10, true), - array('-10', true), - array('-10foo', false), - ); - } - - } -- 2.25.1