ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
NumberFormatTest Class Reference
+ Inheritance diagram for NumberFormatTest:
+ Collaboration diagram for NumberFormatTest:

Public Member Functions

 setUp ()
 
 testFormatValueWithMask ()
 @dataProvider providerNumberFormat More...
 
 providerNumberFormat ()
 

Detailed Description

Definition at line 6 of file NumberFormatTest.php.

Member Function Documentation

◆ providerNumberFormat()

NumberFormatTest::providerNumberFormat ( )

Definition at line 31 of file NumberFormatTest.php.

32 {
33 return new testDataFileIterator('rawTestData/Style/NumberFormat.data');
34 }

◆ setUp()

NumberFormatTest::setUp ( )

Definition at line 9 of file NumberFormatTest.php.

10 {
11 if (!defined('PHPEXCEL_ROOT')) {
12 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
13 }
14 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
15
18 }
static setDecimalSeparator($pValue='.')
Set the decimal separator.
Definition: String.php:708
static setThousandsSeparator($pValue=',')
Set the thousands separator.
Definition: String.php:740
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

References defined, PHPExcel_Shared_String\setDecimalSeparator(), and PHPExcel_Shared_String\setThousandsSeparator().

+ Here is the call graph for this function:

◆ testFormatValueWithMask()

NumberFormatTest::testFormatValueWithMask ( )

@dataProvider providerNumberFormat

Definition at line 23 of file NumberFormatTest.php.

24 {
25 $args = func_get_args();
26 $expectedResult = array_pop($args);
27 $result = call_user_func_array(array('PHPExcel_Style_NumberFormat','toFormattedString'),$args);
28 $this->assertEquals($expectedResult, $result);
29 }
$result

References $result.


The documentation for this class was generated from the following file: