ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
NumberFormatTest Class Reference
+ Inheritance diagram for NumberFormatTest:
+ Collaboration diagram for NumberFormatTest:

Public Member Functions

 setUp ()
 
 testFormatValueWithMask ()
 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.

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

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
+ Here is the call graph for this function:

◆ testFormatValueWithMask()

NumberFormatTest::testFormatValueWithMask ( )

providerNumberFormat

Definition at line 23 of file NumberFormatTest.php.

References $result, and array.

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
Create styles array
The data for the language used.

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