php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /var/www/html/FTFL/inc/excel_lib2007/unitTests/Classes/PHPExcel/Shared/ |
files >> /var/www/html/FTFL/inc/excel_lib2007/unitTests/Classes/PHPExcel/Shared/StringTest.php |
<?php require_once 'testDataFileIterator.php'; class StringTest extends PHPUnit_Framework_TestCase { public function setUp() { if (!defined('PHPEXCEL_ROOT')) { define('PHPEXCEL_ROOT', APPLICATION_PATH . '/'); } require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } public function testGetIsMbStringEnabled() { $result = call_user_func(array('PHPExcel_Shared_String','getIsMbstringEnabled')); $this->assertTrue($result); } public function testGetIsIconvEnabled() { $result = call_user_func(array('PHPExcel_Shared_String','getIsIconvEnabled')); $this->assertTrue($result); } public function testGetDecimalSeparator() { $localeconv = localeconv(); $expectedResult = (!empty($localeconv['decimal_point'])) ? $localeconv['decimal_point'] : ','; $result = call_user_func(array('PHPExcel_Shared_String','getDecimalSeparator')); $this->assertEquals($expectedResult, $result); } public function testSetDecimalSeparator() { $expectedResult = ','; $result = call_user_func(array('PHPExcel_Shared_String','setDecimalSeparator'),$expectedResult); $result = call_user_func(array('PHPExcel_Shared_String','getDecimalSeparator')); $this->assertEquals($expectedResult, $result); } public function testGetThousandsSeparator() { $localeconv = localeconv(); $expectedResult = (!empty($localeconv['thousands_sep'])) ? $localeconv['thousands_sep'] : ','; $result = call_user_func(array('PHPExcel_Shared_String','getThousandsSeparator')); $this->assertEquals($expectedResult, $result); } public function testSetThousandsSeparator() { $expectedResult = ' '; $result = call_user_func(array('PHPExcel_Shared_String','setThousandsSeparator'),$expectedResult); $result = call_user_func(array('PHPExcel_Shared_String','getThousandsSeparator')); $this->assertEquals($expectedResult, $result); } public function testGetCurrencyCode() { $localeconv = localeconv(); $expectedResult = (!empty($localeconv['currency_symbol'])) ? $localeconv['currency_symbol'] : '$'; $result = call_user_func(array('PHPExcel_Shared_String','getCurrencyCode')); $this->assertEquals($expectedResult, $result); } public function testSetCurrencyCode() { $expectedResult = '£'; $result = call_user_func(array('PHPExcel_Shared_String','setCurrencyCode'),$expectedResult); $result = call_user_func(array('PHPExcel_Shared_String','getCurrencyCode')); $this->assertEquals($expectedResult, $result); } }y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`