ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
NumberFormatTest.php
Go to the documentation of this file.
1<?php
2
3
4require_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}
$result
An exception for terminatinating execution or to throw for unit testing.
testFormatValueWithMask()
@dataProvider providerNumberFormat
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