ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
NumberFormatTest.php
Go to the documentation of this file.
1 <?php
2 
3 
4 require_once 'testDataFileIterator.php';
5 
7 {
8 
9  public function setUp()
10  {
11  if (!defined('PHPEXCEL_ROOT')) {
12  define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
13  }
14  require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
15 
18  }
19 
23  public function testFormatValueWithMask()
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  }
30 
31  public function providerNumberFormat()
32  {
33  return new testDataFileIterator('rawTestData/Style/NumberFormat.data');
34  }
35 
36 }
static setDecimalSeparator($pValue='.')
Set the decimal separator.
Definition: String.php:708
$result
testFormatValueWithMask()
providerNumberFormat
static setThousandsSeparator($pValue=',')
Set the thousands separator.
Definition: String.php:740
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27