Refactor tests data from custom format to PHP

FIX #14
This commit is contained in:
Adrien Crivelli 2016-08-16 21:00:19 +09:00
parent 467babcb44
commit e1f81f0fe0
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
403 changed files with 20307 additions and 3959 deletions

View File

@ -2,7 +2,6 @@
namespace PhpSpreadsheet\Tests\Calculation;
use PhpSpreadsheet\Tests\TestDataFileIterator;
use PHPExcel\Shared\Date;
use PHPExcel\Calculation\Functions;
use PHPExcel\Calculation\DateTime;
@ -32,7 +31,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerDATE()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/DATE.data');
return require 'data/Calculation/DateTime/DATE.php';
}
public function testDATEtoPHP()
@ -85,7 +84,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerDATEVALUE()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/DATEVALUE.data');
return require 'data/Calculation/DateTime/DATEVALUE.php';
}
public function testDATEVALUEtoPHP()
@ -122,7 +121,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerYEAR()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/YEAR.data');
return require 'data/Calculation/DateTime/YEAR.php';
}
/**
@ -138,7 +137,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerMONTH()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/MONTH.data');
return require 'data/Calculation/DateTime/MONTH.php';
}
/**
@ -157,7 +156,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerWEEKNUM()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/WEEKNUM.data');
return require 'data/Calculation/DateTime/WEEKNUM.php';
}
/**
@ -176,7 +175,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerWEEKDAY()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/WEEKDAY.data');
return require 'data/Calculation/DateTime/WEEKDAY.php';
}
/**
@ -192,7 +191,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerDAY()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/DAY.data');
return require 'data/Calculation/DateTime/DAY.php';
}
/**
@ -208,7 +207,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerTIME()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/TIME.data');
return require 'data/Calculation/DateTime/TIME.php';
}
public function testTIMEtoPHP()
@ -247,7 +246,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerTIMEVALUE()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/TIMEVALUE.data');
return require 'data/Calculation/DateTime/TIMEVALUE.php';
}
public function testTIMEVALUEtoPHP()
@ -286,7 +285,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerHOUR()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/HOUR.data');
return require 'data/Calculation/DateTime/HOUR.php';
}
/**
@ -304,7 +303,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerMINUTE()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/MINUTE.data');
return require 'data/Calculation/DateTime/MINUTE.php';
}
/**
@ -322,7 +321,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerSECOND()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/SECOND.data');
return require 'data/Calculation/DateTime/SECOND.php';
}
/**
@ -338,7 +337,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerNETWORKDAYS()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/NETWORKDAYS.data');
return require 'data/Calculation/DateTime/NETWORKDAYS.php';
}
/**
@ -354,7 +353,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerWORKDAY()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/WORKDAY.data');
return require 'data/Calculation/DateTime/WORKDAY.php';
}
/**
@ -370,7 +369,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerEDATE()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/EDATE.data');
return require 'data/Calculation/DateTime/EDATE.php';
}
public function testEDATEtoPHP()
@ -407,7 +406,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerEOMONTH()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/EOMONTH.data');
return require 'data/Calculation/DateTime/EOMONTH.php';
}
public function testEOMONTHtoPHP()
@ -447,7 +446,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerDATEDIF()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/DATEDIF.data');
return require 'data/Calculation/DateTime/DATEDIF.php';
}
/**
@ -463,7 +462,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerDAYS360()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/DAYS360.data');
return require 'data/Calculation/DateTime/DAYS360.php';
}
/**
@ -482,6 +481,6 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
public function providerYEARFRAC()
{
return new TestDataFileIterator('rawTestData/Calculation/DateTime/YEARFRAC.data');
return require 'data/Calculation/DateTime/YEARFRAC.php';
}
}

View File

@ -37,7 +37,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerBESSELI()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/BESSELI.data');
return require 'data/Calculation/Engineering/BESSELI.php';
}
/**
@ -53,7 +53,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerBESSELJ()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/BESSELJ.data');
return require 'data/Calculation/Engineering/BESSELJ.php';
}
/**
@ -69,7 +69,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerBESSELK()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/BESSELK.data');
return require 'data/Calculation/Engineering/BESSELK.php';
}
/**
@ -85,7 +85,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerBESSELY()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/BESSELY.data');
return require 'data/Calculation/Engineering/BESSELY.php';
}
/**
@ -101,7 +101,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerCOMPLEX()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/COMPLEX.data');
return require 'data/Calculation/Engineering/COMPLEX.php';
}
/**
@ -117,7 +117,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMAGINARY()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMAGINARY.data');
return require 'data/Calculation/Engineering/IMAGINARY.php';
}
/**
@ -133,7 +133,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMREAL()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMREAL.data');
return require 'data/Calculation/Engineering/IMREAL.php';
}
/**
@ -149,7 +149,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMABS()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMABS.data');
return require 'data/Calculation/Engineering/IMABS.php';
}
/**
@ -166,7 +166,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMARGUMENT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMARGUMENT.data');
return require 'data/Calculation/Engineering/IMARGUMENT.php';
}
/**
@ -182,7 +182,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMCONJUGATE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMCONJUGATE.data');
return require 'data/Calculation/Engineering/IMCONJUGATE.php';
}
/**
@ -198,7 +198,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMCOS()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMCOS.data');
return require 'data/Calculation/Engineering/IMCOS.php';
}
/**
@ -217,7 +217,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMDIV()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMDIV.data');
return require 'data/Calculation/Engineering/IMDIV.php';
}
/**
@ -233,7 +233,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMEXP()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMEXP.data');
return require 'data/Calculation/Engineering/IMEXP.php';
}
/**
@ -249,7 +249,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMLN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMLN.data');
return require 'data/Calculation/Engineering/IMLN.php';
}
/**
@ -265,7 +265,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMLOG2()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMLOG2.data');
return require 'data/Calculation/Engineering/IMLOG2.php';
}
/**
@ -281,7 +281,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMLOG10()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMLOG10.data');
return require 'data/Calculation/Engineering/IMLOG10.php';
}
/**
@ -300,7 +300,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMPOWER()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMPOWER.data');
return require 'data/Calculation/Engineering/IMPOWER.php';
}
/**
@ -316,7 +316,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMPRODUCT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMPRODUCT.data');
return require 'data/Calculation/Engineering/IMPRODUCT.php';
}
/**
@ -332,7 +332,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMSIN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMSIN.data');
return require 'data/Calculation/Engineering/IMSIN.php';
}
/**
@ -348,7 +348,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMSQRT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMSQRT.data');
return require 'data/Calculation/Engineering/IMSQRT.php';
}
/**
@ -367,7 +367,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMSUB()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMSUB.data');
return require 'data/Calculation/Engineering/IMSUB.php';
}
/**
@ -384,7 +384,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerIMSUM()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/IMSUM.data');
return require 'data/Calculation/Engineering/IMSUM.php';
}
/**
@ -400,7 +400,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerERF()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/ERF.data');
return require 'data/Calculation/Engineering/ERF.php';
}
/**
@ -416,7 +416,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerERFC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/ERFC.data');
return require 'data/Calculation/Engineering/ERFC.php';
}
/**
@ -432,7 +432,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerBIN2DEC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/BIN2DEC.data');
return require 'data/Calculation/Engineering/BIN2DEC.php';
}
/**
@ -448,7 +448,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerBIN2HEX()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/BIN2HEX.data');
return require 'data/Calculation/Engineering/BIN2HEX.php';
}
/**
@ -464,7 +464,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerBIN2OCT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/BIN2OCT.data');
return require 'data/Calculation/Engineering/BIN2OCT.php';
}
/**
@ -480,7 +480,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerDEC2BIN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/DEC2BIN.data');
return require 'data/Calculation/Engineering/DEC2BIN.php';
}
/**
@ -496,7 +496,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerDEC2HEX()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/DEC2HEX.data');
return require 'data/Calculation/Engineering/DEC2HEX.php';
}
/**
@ -512,7 +512,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerDEC2OCT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/DEC2OCT.data');
return require 'data/Calculation/Engineering/DEC2OCT.php';
}
/**
@ -528,7 +528,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerHEX2BIN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/HEX2BIN.data');
return require 'data/Calculation/Engineering/HEX2BIN.php';
}
/**
@ -544,7 +544,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerHEX2DEC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/HEX2DEC.data');
return require 'data/Calculation/Engineering/HEX2DEC.php';
}
/**
@ -560,7 +560,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerHEX2OCT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/HEX2OCT.data');
return require 'data/Calculation/Engineering/HEX2OCT.php';
}
/**
@ -576,7 +576,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerOCT2BIN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/OCT2BIN.data');
return require 'data/Calculation/Engineering/OCT2BIN.php';
}
/**
@ -592,7 +592,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerOCT2DEC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/OCT2DEC.data');
return require 'data/Calculation/Engineering/OCT2DEC.php';
}
/**
@ -608,7 +608,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerOCT2HEX()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/OCT2HEX.data');
return require 'data/Calculation/Engineering/OCT2HEX.php';
}
/**
@ -624,7 +624,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerDELTA()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/DELTA.data');
return require 'data/Calculation/Engineering/DELTA.php';
}
/**
@ -640,7 +640,7 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerGESTEP()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/GESTEP.data');
return require 'data/Calculation/Engineering/GESTEP.php';
}
public function testGetConversionGroups()
@ -680,6 +680,6 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase
public function providerCONVERTUOM()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Engineering/CONVERTUOM.data');
return require 'data/Calculation/Engineering/CONVERTUOM.php';
}
}

View File

@ -27,7 +27,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerACCRINT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/ACCRINT.data');
return require 'data/Calculation/Financial/ACCRINT.php';
}
/**
@ -43,7 +43,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerACCRINTM()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/ACCRINTM.data');
return require 'data/Calculation/Financial/ACCRINTM.php';
}
/**
@ -59,7 +59,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerAMORDEGRC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/AMORDEGRC.data');
return require 'data/Calculation/Financial/AMORDEGRC.php';
}
/**
@ -75,7 +75,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerAMORLINC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/AMORLINC.data');
return require 'data/Calculation/Financial/AMORLINC.php';
}
/**
@ -91,7 +91,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerCOUPDAYBS()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/COUPDAYBS.data');
return require 'data/Calculation/Financial/COUPDAYBS.php';
}
/**
@ -107,7 +107,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerCOUPDAYS()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/COUPDAYS.data');
return require 'data/Calculation/Financial/COUPDAYS.php';
}
/**
@ -123,7 +123,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerCOUPDAYSNC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/COUPDAYSNC.data');
return require 'data/Calculation/Financial/COUPDAYSNC.php';
}
/**
@ -139,7 +139,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerCOUPNCD()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/COUPNCD.data');
return require 'data/Calculation/Financial/COUPNCD.php';
}
/**
@ -155,7 +155,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerCOUPNUM()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/COUPNUM.data');
return require 'data/Calculation/Financial/COUPNUM.php';
}
/**
@ -171,7 +171,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerCOUPPCD()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/COUPPCD.data');
return require 'data/Calculation/Financial/COUPPCD.php';
}
/**
@ -187,7 +187,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerCUMIPMT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/CUMIPMT.data');
return require 'data/Calculation/Financial/CUMIPMT.php';
}
/**
@ -203,7 +203,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerCUMPRINC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/CUMPRINC.data');
return require 'data/Calculation/Financial/CUMPRINC.php';
}
/**
@ -219,7 +219,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerDB()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/DB.data');
return require 'data/Calculation/Financial/DB.php';
}
/**
@ -235,7 +235,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerDDB()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/DDB.data');
return require 'data/Calculation/Financial/DDB.php';
}
/**
@ -251,7 +251,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerDISC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/DISC.data');
return require 'data/Calculation/Financial/DISC.php';
}
/**
@ -267,7 +267,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerDOLLARDE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/DOLLARDE.data');
return require 'data/Calculation/Financial/DOLLARDE.php';
}
/**
@ -283,7 +283,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerDOLLARFR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/DOLLARFR.data');
return require 'data/Calculation/Financial/DOLLARFR.php';
}
/**
@ -299,7 +299,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerEFFECT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/EFFECT.data');
return require 'data/Calculation/Financial/EFFECT.php';
}
/**
@ -315,7 +315,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerFV()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/FV.data');
return require 'data/Calculation/Financial/FV.php';
}
/**
@ -331,7 +331,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerFVSCHEDULE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/FVSCHEDULE.data');
return require 'data/Calculation/Financial/FVSCHEDULE.php';
}
/**
@ -347,7 +347,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerINTRATE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/INTRATE.data');
return require 'data/Calculation/Financial/INTRATE.php';
}
/**
@ -363,7 +363,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerIPMT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/IPMT.data');
return require 'data/Calculation/Financial/IPMT.php';
}
/**
@ -379,7 +379,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerIRR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/IRR.data');
return require 'data/Calculation/Financial/IRR.php';
}
/**
@ -395,7 +395,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerISPMT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/ISPMT.data');
return require 'data/Calculation/Financial/ISPMT.php';
}
/**
@ -411,7 +411,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerMIRR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/MIRR.data');
return require 'data/Calculation/Financial/MIRR.php';
}
/**
@ -427,7 +427,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerNOMINAL()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/NOMINAL.data');
return require 'data/Calculation/Financial/NOMINAL.php';
}
/**
@ -443,7 +443,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerNPER()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/NPER.data');
return require 'data/Calculation/Financial/NPER.php';
}
/**
@ -459,7 +459,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerNPV()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/NPV.data');
return require 'data/Calculation/Financial/NPV.php';
}
/**
@ -478,7 +478,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerPRICE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/PRICE.data');
return require 'data/Calculation/Financial/PRICE.php';
}
/**
@ -497,7 +497,7 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerRATE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/RATE.data');
return require 'data/Calculation/Financial/RATE.php';
}
/**
@ -516,6 +516,6 @@ class FinancialTest extends \PHPUnit_Framework_TestCase
public function providerXIRR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Financial/XIRR.data');
return require 'data/Calculation/Financial/XIRR.php';
}
}

View File

@ -73,7 +73,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsBlank()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_BLANK.data');
return require 'data/Calculation/Functions/IS_BLANK.php';
}
/**
@ -89,7 +89,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsErr()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_ERR.data');
return require 'data/Calculation/Functions/IS_ERR.php';
}
/**
@ -105,7 +105,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsError()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_ERROR.data');
return require 'data/Calculation/Functions/IS_ERROR.php';
}
/**
@ -121,7 +121,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerErrorType()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/ERROR_TYPE.data');
return require 'data/Calculation/Functions/ERROR_TYPE.php';
}
/**
@ -137,7 +137,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsLogical()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_LOGICAL.data');
return require 'data/Calculation/Functions/IS_LOGICAL.php';
}
/**
@ -153,7 +153,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsNa()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_NA.data');
return require 'data/Calculation/Functions/IS_NA.php';
}
/**
@ -169,7 +169,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsNumber()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_NUMBER.data');
return require 'data/Calculation/Functions/IS_NUMBER.php';
}
/**
@ -185,7 +185,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsText()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_TEXT.data');
return require 'data/Calculation/Functions/IS_TEXT.php';
}
/**
@ -201,7 +201,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsNonText()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_NONTEXT.data');
return require 'data/Calculation/Functions/IS_NONTEXT.php';
}
/**
@ -217,7 +217,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsEven()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_EVEN.data');
return require 'data/Calculation/Functions/IS_EVEN.php';
}
/**
@ -233,7 +233,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerIsOdd()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/IS_ODD.data');
return require 'data/Calculation/Functions/IS_ODD.php';
}
/**
@ -249,7 +249,7 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerTYPE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/TYPE.data');
return require 'data/Calculation/Functions/TYPE.php';
}
/**
@ -265,6 +265,6 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase
public function providerN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Functions/N.data');
return require 'data/Calculation/Functions/N.php';
}
}

View File

@ -38,7 +38,7 @@ class LogicalTest extends \PHPUnit_Framework_TestCase
public function providerAND()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Logical/AND.data');
return require 'data/Calculation/Logical/AND.php';
}
/**
@ -54,7 +54,7 @@ class LogicalTest extends \PHPUnit_Framework_TestCase
public function providerOR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Logical/OR.data');
return require 'data/Calculation/Logical/OR.php';
}
/**
@ -70,7 +70,7 @@ class LogicalTest extends \PHPUnit_Framework_TestCase
public function providerNOT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Logical/NOT.data');
return require 'data/Calculation/Logical/NOT.php';
}
/**
@ -86,7 +86,7 @@ class LogicalTest extends \PHPUnit_Framework_TestCase
public function providerIF()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Logical/IF.data');
return require 'data/Calculation/Logical/IF.php';
}
/**
@ -102,6 +102,6 @@ class LogicalTest extends \PHPUnit_Framework_TestCase
public function providerIFERROR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/Logical/IFERROR.data');
return require 'data/Calculation/Logical/IFERROR.php';
}
}

View File

@ -31,7 +31,7 @@ class LookupRefTest extends \PHPUnit_Framework_TestCase
public function providerHLOOKUP()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/LookupRef/HLOOKUP.data');
return require 'data/Calculation/LookupRef/HLOOKUP.php';
}
/**
@ -48,6 +48,6 @@ class LookupRefTest extends \PHPUnit_Framework_TestCase
public function providerVLOOKUP()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/LookupRef/VLOOKUP.data');
return require 'data/Calculation/LookupRef/VLOOKUP.php';
}
}

View File

@ -27,7 +27,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerATAN2()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/ATAN2.data');
return require 'data/Calculation/MathTrig/ATAN2.php';
}
/**
@ -43,7 +43,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerCEILING()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/CEILING.data');
return require 'data/Calculation/MathTrig/CEILING.php';
}
/**
@ -59,7 +59,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerCOMBIN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/COMBIN.data');
return require 'data/Calculation/MathTrig/COMBIN.php';
}
/**
@ -75,7 +75,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerEVEN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/EVEN.data');
return require 'data/Calculation/MathTrig/EVEN.php';
}
/**
@ -91,7 +91,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerODD()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/ODD.data');
return require 'data/Calculation/MathTrig/ODD.php';
}
/**
@ -107,7 +107,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerFACT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/FACT.data');
return require 'data/Calculation/MathTrig/FACT.php';
}
/**
@ -123,7 +123,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerFACTDOUBLE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/FACTDOUBLE.data');
return require 'data/Calculation/MathTrig/FACTDOUBLE.php';
}
/**
@ -139,7 +139,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerFLOOR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/FLOOR.data');
return require 'data/Calculation/MathTrig/FLOOR.php';
}
/**
@ -155,7 +155,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerGCD()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/GCD.data');
return require 'data/Calculation/MathTrig/GCD.php';
}
/**
@ -171,7 +171,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerLCM()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/LCM.data');
return require 'data/Calculation/MathTrig/LCM.php';
}
/**
@ -187,7 +187,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerINT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/INT.data');
return require 'data/Calculation/MathTrig/INT.php';
}
/**
@ -203,7 +203,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerSIGN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/SIGN.data');
return require 'data/Calculation/MathTrig/SIGN.php';
}
/**
@ -219,7 +219,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerPOWER()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/POWER.data');
return require 'data/Calculation/MathTrig/POWER.php';
}
/**
@ -235,7 +235,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerLOG()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/LOG.data');
return require 'data/Calculation/MathTrig/LOG.php';
}
/**
@ -251,7 +251,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerMOD()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/MOD.data');
return require 'data/Calculation/MathTrig/MOD.php';
}
/**
@ -270,7 +270,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerMDETERM()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/MDETERM.data');
return require 'data/Calculation/MathTrig/MDETERM.php';
}
/**
@ -289,7 +289,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerMINVERSE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/MINVERSE.data');
return require 'data/Calculation/MathTrig/MINVERSE.php';
}
/**
@ -308,7 +308,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerMMULT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/MMULT.data');
return require 'data/Calculation/MathTrig/MMULT.php';
}
/**
@ -324,7 +324,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerMULTINOMIAL()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/MULTINOMIAL.data');
return require 'data/Calculation/MathTrig/MULTINOMIAL.php';
}
/**
@ -342,7 +342,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerMROUND()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/MROUND.data');
return require 'data/Calculation/MathTrig/MROUND.php';
}
/**
@ -358,7 +358,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerPRODUCT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/PRODUCT.data');
return require 'data/Calculation/MathTrig/PRODUCT.php';
}
/**
@ -374,7 +374,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerQUOTIENT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/QUOTIENT.data');
return require 'data/Calculation/MathTrig/QUOTIENT.php';
}
/**
@ -390,7 +390,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerROUNDUP()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/ROUNDUP.data');
return require 'data/Calculation/MathTrig/ROUNDUP.php';
}
/**
@ -406,7 +406,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerROUNDDOWN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/ROUNDDOWN.data');
return require 'data/Calculation/MathTrig/ROUNDDOWN.php';
}
/**
@ -422,7 +422,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerSERIESSUM()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/SERIESSUM.data');
return require 'data/Calculation/MathTrig/SERIESSUM.php';
}
/**
@ -438,7 +438,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerSUMSQ()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/SUMSQ.data');
return require 'data/Calculation/MathTrig/SUMSQ.php';
}
/**
@ -454,7 +454,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerTRUNC()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/TRUNC.data');
return require 'data/Calculation/MathTrig/TRUNC.php';
}
/**
@ -470,7 +470,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerROMAN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/ROMAN.data');
return require 'data/Calculation/MathTrig/ROMAN.php';
}
/**
@ -486,7 +486,7 @@ class MathTrigTest extends \PHPUnit_Framework_TestCase
public function providerSQRTPI()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/MathTrig/SQRTPI.data');
return require 'data/Calculation/MathTrig/SQRTPI.php';
}
/**

View File

@ -27,7 +27,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerCHAR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/CHAR.data');
return require 'data/Calculation/TextData/CHAR.php';
}
/**
@ -43,7 +43,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerCODE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/CODE.data');
return require 'data/Calculation/TextData/CODE.php';
}
/**
@ -59,7 +59,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerCONCATENATE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/CONCATENATE.data');
return require 'data/Calculation/TextData/CONCATENATE.php';
}
/**
@ -75,7 +75,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerLEFT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/LEFT.data');
return require 'data/Calculation/TextData/LEFT.php';
}
/**
@ -91,7 +91,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerMID()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/MID.data');
return require 'data/Calculation/TextData/MID.php';
}
/**
@ -107,7 +107,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerRIGHT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/RIGHT.data');
return require 'data/Calculation/TextData/RIGHT.php';
}
/**
@ -123,7 +123,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerLOWER()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/LOWER.data');
return require 'data/Calculation/TextData/LOWER.php';
}
/**
@ -139,7 +139,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerUPPER()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/UPPER.data');
return require 'data/Calculation/TextData/UPPER.php';
}
/**
@ -155,7 +155,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerPROPER()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/PROPER.data');
return require 'data/Calculation/TextData/PROPER.php';
}
/**
@ -171,7 +171,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerLEN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/LEN.data');
return require 'data/Calculation/TextData/LEN.php';
}
/**
@ -187,7 +187,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerSEARCH()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/SEARCH.data');
return require 'data/Calculation/TextData/SEARCH.php';
}
/**
@ -203,7 +203,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerFIND()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/FIND.data');
return require 'data/Calculation/TextData/FIND.php';
}
/**
@ -219,7 +219,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerREPLACE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/REPLACE.data');
return require 'data/Calculation/TextData/REPLACE.php';
}
/**
@ -235,7 +235,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerSUBSTITUTE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/SUBSTITUTE.data');
return require 'data/Calculation/TextData/SUBSTITUTE.php';
}
/**
@ -251,7 +251,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerTRIM()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/TRIM.data');
return require 'data/Calculation/TextData/TRIM.php';
}
/**
@ -267,7 +267,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerCLEAN()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/CLEAN.data');
return require 'data/Calculation/TextData/CLEAN.php';
}
/**
@ -283,7 +283,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerDOLLAR()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/DOLLAR.data');
return require 'data/Calculation/TextData/DOLLAR.php';
}
/**
@ -299,7 +299,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerFIXED()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/FIXED.data');
return require 'data/Calculation/TextData/FIXED.php';
}
/**
@ -315,7 +315,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/T.data');
return require 'data/Calculation/TextData/T.php';
}
/**
@ -336,7 +336,7 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerTEXT()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/TEXT.data');
return require 'data/Calculation/TextData/TEXT.php';
}
/**
@ -356,6 +356,6 @@ class TextDataTest extends \PHPUnit_Framework_TestCase
public function providerVALUE()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Calculation/TextData/VALUE.data');
return require 'data/Calculation/TextData/VALUE.php';
}
}

View File

@ -28,6 +28,6 @@ class CalculationTest extends \PHPUnit_Framework_TestCase
public function providerBinaryComparisonOperation()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CalculationBinaryComparisonOperation.data');
return require 'data/CalculationBinaryComparisonOperation.php';
}
}

View File

@ -72,7 +72,7 @@ class DefaultValueBinderTest extends \PHPUnit_Framework_TestCase
public function providerDataTypeForValue()
{
return new \PhpSpreadsheet\Tests\TestDataFileIteratorJson('rawTestData/Cell/DefaultValueBinder.json');
return require 'data/Cell/DefaultValueBinder.php';
}
public function testDataTypeForRichTextObject()

View File

@ -20,7 +20,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerColumnString()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/ColumnString.data');
return require 'data/ColumnString.php';
}
public function testColumnIndexFromStringTooLong()
@ -62,7 +62,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerColumnIndex()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/ColumnIndex.data');
return require 'data/ColumnIndex.php';
}
/**
@ -78,7 +78,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerCoordinates()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellCoordinates.data');
return require 'data/CellCoordinates.php';
}
public function testCoordinateFromStringWithRangeAddress()
@ -133,7 +133,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerAbsoluteCoordinates()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellAbsoluteCoordinate.data');
return require 'data/CellAbsoluteCoordinate.php';
}
public function testAbsoluteCoordinateFromStringWithRangeAddress()
@ -162,7 +162,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerAbsoluteReferences()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellAbsoluteReference.data');
return require 'data/CellAbsoluteReference.php';
}
public function testAbsoluteReferenceFromStringWithRangeAddress()
@ -197,7 +197,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerSplitRange()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellSplitRange.data');
return require 'data/CellSplitRange.php';
}
/**
@ -213,7 +213,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerBuildRange()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellBuildRange.data');
return require 'data/CellBuildRange.php';
}
public function testBuildRangeInvalid()
@ -242,7 +242,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerRangeBoundaries()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellRangeBoundaries.data');
return require 'data/CellRangeBoundaries.php';
}
/**
@ -258,7 +258,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerRangeDimension()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellRangeDimension.data');
return require 'data/CellRangeDimension.php';
}
/**
@ -274,7 +274,7 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerGetRangeBoundaries()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellGetRangeBoundaries.data');
return require 'data/CellGetRangeBoundaries.php';
}
/**
@ -290,6 +290,6 @@ class CellTest extends \PHPUnit_Framework_TestCase
public function providerExtractAllCellReferencesInRange()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/CellExtractAllCellReferencesInRange.data');
return require 'data/CellExtractAllCellReferencesInRange.php';
}
}

View File

@ -21,7 +21,7 @@ class XEEValidatorTest extends \PHPUnit_Framework_TestCase
public function providerInvalidXML()
{
$tests = [];
foreach (glob('rawTestData/Reader/XEETestInvalid*.xml') as $file) {
foreach (glob('data/Reader/XEETestInvalid*.xml') as $file) {
$tests[] = [realpath($file), true];
}
return $tests;
@ -40,7 +40,7 @@ class XEEValidatorTest extends \PHPUnit_Framework_TestCase
public function providerValidXML()
{
$tests = array();
foreach (glob('rawTestData/Reader/XEETestValid*.xml') as $file) {
foreach (glob('data/Reader/XEETestValid*.xml') as $file) {
$tests[] = [realpath($file), file_get_contents($file)];
}
return $tests;

View File

@ -20,7 +20,7 @@ class CodePageTest extends \PHPUnit_Framework_TestCase
public function providerCodePage()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Shared/CodePage.data');
return require 'data/Shared/CodePage.php';
}
public function testNumberToNameWithInvalidCodePage()

View File

@ -44,7 +44,7 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function providerDateTimeExcelToTimestamp1900()
{
return include 'rawTestData/Shared/Date/ExcelToTimestamp1900.php';
return require 'data/Shared/Date/ExcelToTimestamp1900.php';
}
/**
@ -65,7 +65,7 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function providerDateTimeTimestampToExcel1900()
{
return include 'rawTestData/Shared/Date/TimestampToExcel1900.php';
return require 'data/Shared/Date/TimestampToExcel1900.php';
}
/**
@ -86,7 +86,7 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function providerDateTimeDateTimeToExcel()
{
return include 'rawTestData/Shared/Date/DateTimeToExcel.php';
return require 'data/Shared/Date/DateTimeToExcel.php';
}
/**
@ -107,7 +107,7 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function providerDateTimeFormattedPHPToExcel1900()
{
return include 'rawTestData/Shared/Date/FormattedPHPToExcel1900.php';
return require 'data/Shared/Date/FormattedPHPToExcel1900.php';
}
/**
@ -128,7 +128,7 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function providerDateTimeExcelToTimestamp1904()
{
return include 'rawTestData/Shared/Date/ExcelToTimestamp1904.php';
return require 'data/Shared/Date/ExcelToTimestamp1904.php';
}
/**
@ -149,7 +149,7 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function providerDateTimeTimestampToExcel1904()
{
return include 'rawTestData/Shared/Date/TimestampToExcel1904.php';
return require 'data/Shared/Date/TimestampToExcel1904.php';
}
/**
@ -165,7 +165,7 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function providerIsDateTimeFormatCode()
{
return include 'rawTestData/Shared/Date/FormatCodes.php';
return require 'data/Shared/Date/FormatCodes.php';
}
/**
@ -186,6 +186,6 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function providerDateTimeExcelToTimestamp1900Timezone()
{
return include 'rawTestData/Shared/Date/ExcelToTimestamp1900Timezone.php';
return require 'data/Shared/Date/ExcelToTimestamp1900Timezone.php';
}
}

View File

@ -48,7 +48,7 @@ class FontTest extends \PHPUnit_Framework_TestCase
public function providerFontSizeToPixels()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Shared/FontSizeToPixels.data');
return require 'data/Shared/FontSizeToPixels.php';
}
/**
@ -64,7 +64,7 @@ class FontTest extends \PHPUnit_Framework_TestCase
public function providerInchSizeToPixels()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Shared/InchSizeToPixels.data');
return require 'data/Shared/InchSizeToPixels.php';
}
/**
@ -80,6 +80,6 @@ class FontTest extends \PHPUnit_Framework_TestCase
public function providerCentimeterSizeToPixels()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Shared/CentimeterSizeToPixels.data');
return require 'data/Shared/CentimeterSizeToPixels.php';
}
}

View File

@ -20,6 +20,6 @@ class PasswordHasherTest extends \PHPUnit_Framework_TestCase
public function providerHashPassword()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Shared/PasswordHashes.data');
return require 'data/Shared/PasswordHashes.php';
}
}

View File

@ -19,7 +19,7 @@ class ColorTest extends \PHPUnit_Framework_TestCase
public function providerColorGetRed()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Style/ColorGetRed.data');
return require 'data/Style/ColorGetRed.php';
}
/**
@ -35,7 +35,7 @@ class ColorTest extends \PHPUnit_Framework_TestCase
public function providerColorGetGreen()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Style/ColorGetGreen.data');
return require 'data/Style/ColorGetGreen.php';
}
/**
@ -51,7 +51,7 @@ class ColorTest extends \PHPUnit_Framework_TestCase
public function providerColorGetBlue()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Style/ColorGetBlue.data');
return require 'data/Style/ColorGetBlue.php';
}
/**
@ -66,6 +66,6 @@ class ColorTest extends \PHPUnit_Framework_TestCase
public function providerColorChangeBrightness()
{
return new \PhpSpreadsheet\Tests\TestDataFileIteratorJson('rawTestData/Style/ColorChangeBrightness.json');
return require 'data/Style/ColorChangeBrightness.php';
}
}

View File

@ -29,6 +29,6 @@ class NumberFormatDateTest extends \PHPUnit_Framework_TestCase
public function providerNumberFormat()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Style/NumberFormatDates.data');
return require 'data/Style/NumberFormatDates.php';
}
}

View File

@ -27,6 +27,6 @@ class NumberFormatTest extends \PHPUnit_Framework_TestCase
public function providerNumberFormat()
{
return new \PhpSpreadsheet\Tests\TestDataFileIterator('rawTestData/Style/NumberFormat.data');
return require 'data/Style/NumberFormat.php';
}
}

View File

@ -1,138 +0,0 @@
<?php
namespace PhpSpreadsheet\Tests;
class TestDataFileIterator implements \Iterator
{
protected $file;
protected $key = 0;
protected $current;
public function __construct($file)
{
$this->file = fopen($file, 'r');
}
public function __destruct()
{
fclose($this->file);
}
public function rewind()
{
rewind($this->file);
$this->current = $this->_parseNextDataset();
$this->key = 0;
}
public function valid()
{
return !feof($this->file);
}
public function key()
{
return $this->key;
}
public function current()
{
return $this->current;
}
public function next()
{
$this->current = $this->_parseNextDataset();
$this->key++;
}
private function _parseNextDataset()
{
// Read a line of test data from the file
do {
// Only take lines that contain test data and that aren't commented out
$testDataRow = trim(fgets($this->file));
} while (($testDataRow > '') && ($testDataRow{0} === '#'));
// Discard any comments at the end of the line
list($testData) = explode('//', $testDataRow);
// Split data into an array of individual values and a result
$dataSet = $this->_getcsv($testData, ',', "'");
foreach ($dataSet as &$dataValue) {
$dataValue = $this->_parseDataValue($dataValue);
}
unset($dataValue);
return $dataSet;
}
private function _getcsv($input, $delimiter, $enclosure)
{
if (function_exists('str_getcsv')) {
return str_getcsv($input, $delimiter, $enclosure);
}
$temp = fopen('php://memory', 'rw');
fwrite($temp, $input);
rewind($temp);
$data = fgetcsv($temp, strlen($input), $delimiter, $enclosure);
fclose($temp);
if ($data === false) {
$data = array(null);
}
return $data;
}
private function _parseDataValue($dataValue)
{
// discard any white space
$dataValue = trim($dataValue);
// test for the required datatype and convert accordingly
if (!is_numeric($dataValue)) {
if ($dataValue == '') {
$dataValue = null;
} elseif ($dataValue == '""') {
$dataValue = '';
} elseif (($dataValue[0] == '"') && ($dataValue[strlen($dataValue)-1] == '"')) {
$dataValue = substr($dataValue, 1, -1);
} elseif (($dataValue[0] == '{') && ($dataValue[strlen($dataValue)-1] == '}')) {
$dataValue = explode(';', substr($dataValue, 1, -1));
foreach ($dataValue as &$dataRow) {
if (strpos($dataRow, '|') !== false) {
$dataRow = explode('|', $dataRow);
foreach ($dataRow as &$dataCell) {
$dataCell = $this->_parseDataValue($dataCell);
}
unset($dataCell);
} else {
$dataRow = $this->_parseDataValue($dataRow);
}
}
unset($dataRow);
} else {
switch (strtoupper($dataValue)) {
case 'NULL':
$dataValue = null;
break;
case 'TRUE':
$dataValue = true;
break;
case 'FALSE':
$dataValue = false;
break;
}
}
} else {
if (strpos($dataValue, '.') !== false) {
$dataValue = (float) $dataValue;
} else {
$dataValue = (int) $dataValue;
}
}
return $dataValue;
}
}

View File

@ -1,65 +0,0 @@
<?php
namespace PhpSpreadsheet\Tests;
class TestDataFileIteratorJson implements \Iterator
{
protected $file;
protected $key = 0;
protected $current;
public function __construct($file)
{
$this->file = fopen($file, 'r');
}
public function __destruct()
{
fclose($this->file);
}
public function rewind()
{
rewind($this->file);
$this->current = $this->_parseNextDataset();
$this->key = 0;
}
public function valid()
{
return !feof($this->file);
}
public function key()
{
return $this->key;
}
public function current()
{
return $this->current;
}
public function next()
{
$this->current = $this->_parseNextDataset();
$this->key++;
}
private function _parseNextDataset()
{
// Read a line of test data from the file
do {
// Only take lines that contain test data and that aren't commented out
$testDataRow = trim(fgets($this->file));
} while (($testDataRow > '') && ($testDataRow{0} === '#'));
// Discard any comments at the end of the line
list($testData) = explode('//', $testDataRow);
// Split data into an array of individual values and a result
$dataSet = json_decode(trim($testData));
return $dataSet;
}
}

View File

@ -0,0 +1,489 @@
<?php
// Year, Month, Day, Result, Comments
return [
[
18,
11,
11,
6890,
],
// Excel 1900 Calendar Base Date
[
1900,
1,
1,
1,
],
// Day before Excel mythical 1900 leap day
[
1900,
2,
28,
59,
],
// Excel mythical 1900 leap day
[
1900,
2,
29,
60,
],
// Day after Excel mythical 1900 leap day
[
1900,
3,
1,
61,
],
// Day after Excel mythical 1900 leap day
[
1901,
12,
13,
713,
],
// PHP 32-bit Earliest Date
[
1901,
12,
14,
714,
],
[
1903,
12,
31,
1461,
],
// Excel 1904 Calendar Base Date
[
1904,
1,
1,
1462,
],
[
1904,
1,
2,
1463,
],
[
1960,
12,
19,
22269,
],
// PHP Base Date
[
1970,
1,
1,
25569,
],
[
1982,
12,
7,
30292,
],
[
2008,
6,
12,
39611,
],
// PHP 32-bit Latest Date
[
2038,
1,
19,
50424,
],
// Day after PHP 32-bit Latest Date
[
2038,
1,
20,
50425,
],
[
2008,
1,
1,
39448,
],
[
2008,
1,
null,
39447,
],
[
2008,
1,
-1,
39446,
],
[
2008,
1,
-30,
39417,
],
[
2008,
1,
-31,
39416,
],
[
2008,
1,
-365,
39082,
],
[
2008,
3,
1,
39508,
],
[
2008,
3,
null,
39507,
],
[
2008,
3,
-1,
39506,
],
[
2008,
3,
-365,
39142,
],
[
2008,
null,
1,
39417,
],
[
2008,
-1,
1,
39387,
],
[
2008,
-11,
1,
39083,
],
[
2008,
-12,
1,
39052,
],
[
2008,
-13,
1,
39022,
],
[
2008,
-13,
30,
39051,
],
[
2008,
-13,
null,
39021,
],
[
2008,
-13,
-30,
38991,
],
[
2008,
-13,
-31,
38990,
],
[
2008,
13,
1,
39814,
],
[
2007,
15,
null,
39507,
],
[
2008,
26,
1,
40210,
],
[
2008,
26,
-10,
40199,
],
[
2008,
-26,
61,
38686,
],
[
2010,
-15,
-50,
39641,
],
[
2010,
-15,
50,
39741,
],
[
2010,
15,
-50,
40552,
],
[
2010,
15,
50,
40652,
],
[
2010,
1.5,
1,
40179,
],
[
2010,
1.5,
0,
40178,
],
[
2010,
0,
1.5,
40148,
],
[
2010,
1,
1.5,
40179,
],
[
2012,
6,
15,
41075,
],
[
2012,
6,
null,
41060,
],
[
2012,
null,
15,
40892,
],
[
null,
6,
15,
167,
],
[
10,
6,
15,
3819,
],
[
10,
null,
null,
3622,
],
[
null,
10,
null,
274,
],
[
null,
null,
10,
'#NUM!',
],
[
-20,
null,
null,
'#NUM!',
],
[
-20,
6,
15,
'#NUM!',
],
// Excel Maximum Date
[
9999,
12,
31,
2958465,
],
// Exceeded Excel Maximum Date
[
10000,
1,
1,
'#NUM!',
],
[
2008,
8,
10,
39670,
],
[
2008,
12,
31,
39813,
],
[
2008,
8,
32,
39692,
],
[
2008,
13,
31,
39844,
],
[
2009,
1,
0,
39813,
],
[
2009,
1,
-1,
39812,
],
[
2009,
0,
0,
39782,
],
[
2009,
0,
-1,
39781,
],
[
2009,
-1,
0,
39752,
],
[
2009,
-1,
-1,
39751,
],
[
2010,
0,
-1,
40146,
],
[
2010,
5,
31,
40329,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
2010,
1,
'21st',
40199,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
2010,
'March',
'21st',
40258,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
2010,
'March',
21,
40258,
],
[
'ABC',
1,
21,
'#VALUE!',
],
[
2010,
'DEF',
21,
'#VALUE!',
],
[
2010,
3,
'GHI',
'#VALUE!',
],
];

View File

@ -0,0 +1,580 @@
<?php
return [
[
'ABC',
'2007-1-10',
'Y',
'#VALUE!',
],
[
'2007-1-1',
'DEF',
'Y',
'#VALUE!',
],
[
'2007-1-1',
'2007-1-10',
'XYZ',
'#VALUE!',
],
[
'2007-1-10',
'2007-1-1',
'Y',
'#NUM!',
],
[
'2007-12-31',
'2008-1-10',
'Y',
0,
],
[
'2007-1-1',
'2007-1-10',
'Y',
0,
],
[
'2007-1-1',
'2007-1-10',
'M',
0,
],
[
'2007-1-1',
'2007-1-10',
'D',
9,
],
[
'2007-1-1',
'2007-1-10',
'YM',
0,
],
[
'2007-1-1',
'2007-1-10',
'YD',
9,
],
[
'2007-1-1',
'2007-1-10',
'MD',
9,
],
[
'2007-1-1',
'2007-12-31',
'Y',
0,
],
[
'2007-1-1',
'2007-12-31',
'M',
11,
],
[
'2007-1-1',
'2007-12-31',
'D',
364,
],
[
'2007-1-1',
'2007-12-31',
'YM',
11,
],
[
'2007-1-1',
'2007-12-31',
'YD',
364,
],
[
'2007-1-1',
'2007-12-31',
'MD',
30,
],
[
'2007-1-1',
'2008-7-1',
'Y',
1,
],
[
'2007-1-1',
'2008-7-1',
'M',
18,
],
[
'2007-1-1',
'2008-7-1',
'D',
547,
],
[
'2007-1-1',
'2008-7-1',
'YM',
6,
],
[
'2007-1-1',
'2008-7-1',
'YD',
181,
],
[
'2007-1-1',
'2008-7-1',
'MD',
0,
],
[
'2007-1-1',
'2007-1-31',
'Y',
0,
],
[
'2007-1-1',
'2007-1-31',
'M',
0,
],
[
'2007-1-1',
'2007-1-31',
'D',
30,
],
[
'2007-1-1',
'2007-1-31',
'YM',
0,
],
[
'2007-1-1',
'2007-1-31',
'YD',
30,
],
[
'2007-1-1',
'2007-1-31',
'MD',
30,
],
[
'2007-1-1',
'2007-2-1',
'Y',
0,
],
[
'2007-1-1',
'2007-2-1',
'M',
1,
],
[
'2007-1-1',
'2007-2-1',
'D',
31,
],
[
'2007-1-1',
'2007-2-1',
'YM',
1,
],
[
'2007-1-1',
'2007-2-1',
'YD',
31,
],
[
'2007-1-1',
'2007-2-1',
'MD',
0,
],
[
'2007-1-1',
'2007-2-28',
'Y',
0,
],
[
'2007-1-1',
'2007-2-28',
'M',
1,
],
[
'2007-1-1',
'2007-2-28',
'D',
58,
],
[
'2007-1-1',
'2007-2-28',
'YM',
1,
],
[
'2007-1-1',
'2007-2-28',
'YD',
58,
],
[
'2007-1-1',
'2007-2-28',
'MD',
27,
],
[
'2007-1-31',
'2007-2-1',
'Y',
0,
],
[
'2007-1-31',
'2007-2-1',
'M',
0,
],
[
'2007-1-31',
'2007-2-1',
'D',
1,
],
[
'2007-1-31',
'2007-2-1',
'YM',
0,
],
[
'2007-1-31',
'2007-2-1',
'YD',
1,
],
[
'2007-1-31',
'2007-2-1',
'MD',
1,
],
[
'2007-1-31',
'2007-3-1',
'Y',
0,
],
[
'2007-1-31',
'2007-3-1',
'M',
1,
],
[
'2007-1-31',
'2007-3-1',
'D',
29,
],
[
'2007-1-31',
'2007-3-1',
'YM',
1,
],
[
'2007-1-31',
'2007-3-1',
'YD',
29,
],
[
'2007-1-31',
'2007-3-1',
'MD',
-2,
],
[
'2007-1-31',
'2007-3-31',
'Y',
0,
],
[
'2007-1-31',
'2007-3-31',
'M',
2,
],
[
'2007-1-31',
'2007-3-31',
'D',
59,
],
[
'2007-1-31',
'2007-3-31',
'YM',
2,
],
[
'2007-1-31',
'2007-3-31',
'YD',
59,
],
[
'2007-1-31',
'2007-3-31',
'MD',
0,
],
[
'2008-1-1',
'2008-9-1',
'Y',
0,
],
[
'2008-1-1',
'2008-9-1',
'M',
8,
],
[
'2008-1-1',
'2008-9-1',
'D',
244,
],
[
'2008-1-1',
'2008-9-1',
'YM',
8,
],
[
'2008-1-1',
'2008-9-1',
'YD',
244,
],
[
'2008-1-1',
'2008-9-1',
'MD',
0,
],
[
'2007-2-1',
'2008-4-1',
'Y',
1,
],
[
'2007-2-1',
'2008-4-1',
'M',
14,
],
[
'2007-2-1',
'2008-4-1',
'D',
425,
],
[
'2007-2-1',
'2008-4-1',
'YM',
2,
],
[
'2007-2-1',
'2008-4-1',
'YD',
59,
],
[
'2007-2-1',
'2008-4-1',
'MD',
0,
],
[
'1960-12-19',
'2008-6-28',
'Y',
47,
],
[
'1960-12-19',
'2008-6-28',
'M',
570,
],
[
'1960-12-19',
'2008-6-28',
'D',
17358,
],
[
'1960-12-19',
'2008-6-28',
'YM',
6,
],
[
'1960-12-19',
'2008-6-28',
'YD',
191,
],
[
'1960-12-19',
'2008-6-28',
'MD',
9,
],
[
'1982-12-7',
'2008-6-28',
'Y',
25,
],
[
'1982-12-7',
'2008-6-28',
'M',
306,
],
[
'1982-12-7',
'2008-6-28',
'D',
9335,
],
[
'1982-12-7',
'2008-6-28',
'YM',
6,
],
[
'1982-12-7',
'2008-6-28',
'YD',
203,
],
[
'1982-12-7',
'2008-6-28',
'MD',
21,
],
[
'2007-12-25',
'2010-3-17',
'Y',
2,
],
[
'2007-12-25',
'2010-3-17',
'M',
26,
],
[
'2007-12-25',
'2010-3-17',
'D',
813,
],
[
'2007-12-25',
'2010-3-17',
'YM',
2,
],
[
'2007-12-25',
'2010-3-17',
'YD',
82,
],
[
'2007-12-25',
'2010-3-17',
'MD',
20,
],
[
'19-12-1960',
'26-01-2012',
'Y',
51,
],
[
'19-12-1960',
'26-01-2012',
'M',
613,
],
[
'19-12-1960',
'26-01-2012',
'D',
18665,
],
[
'19-12-1960',
'26-01-2012',
'YM',
1,
],
[
'19-12-1960',
'26-01-2012',
'YD',
38,
],
[
'19-12-1960',
'26-01-2012',
'MD',
7,
],
[
'19-12-1960',
'12-12-2012',
'Y',
50,
],
];

View File

@ -0,0 +1,293 @@
<?php
// Date String, Result
return [
[
'25-Dec-1899',
'#VALUE!',
],
[
'31-Dec-1899',
'#VALUE!',
],
[
'1-Jan-1900',
1,
],
[
'1900/2/28',
59,
],
[
'29-02-1900',
'#VALUE!',
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'29th February 1900',
'#VALUE!',
],
[
'1900/3/1',
61,
],
[
'13-12-1901',
713,
],
[
'14-12-1901',
714,
],
[
'1903/12/31',
1461,
],
[
'1-Jan-1904',
1462,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'2nd-Jan-1904',
1463,
],
[
'19-12-1960',
22269,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'1st January 1970',
25569,
],
[
'7-Dec-1982',
30292,
],
[
'1-1-2008',
39448,
],
[
'2038-01-19',
50424,
],
[
'2-6-2008',
39601,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'December 25th 2008',
39807,
],
[
'1 Jan-2008',
39448,
],
// MS Excel success or failure dependent on country settings
[
'12-31-2008',
39813,
],
// PHPExcel tries to handle both US and UK formats, irrespective of country settings
[
'31-12-2008',
39813,
],
// MS Excel success or failure dependent on country settings
[
'8/22/2008',
39682,
],
// PHPExcel tries to handle both US and UK formats, irrespective of country settings
[
'22/8/2008',
39682,
],
[
'22/8/08',
39682,
],
[
'22-AUG-2008',
39682,
],
[
'2008/02/23',
39501,
],
[
'6-7-2008',
39635,
],
// MS Excel success or failure dependent on country settings
[
'28-2-2007',
39141,
],
// PHPExcel tries to handle both US and UK formats, irrespective of country settings
[
'2-28-2007',
39141,
],
// Should fail because it's an invalid date, but PHPExcel currently adjusts to 1-3-2007 - FIX NEEDED
[
'29-2-2007',
'#VALUE!',
],
[
'1/1/1999',
36161,
],
[
'1954-07-20',
19925,
],
[
'22 August 98',
36029,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'1st March 2007',
39142,
],
[
'The 1st day of March 2007',
'#VALUE!',
],
// 01/01 of the current year
[
'1 Jan',
42370,
],
// 31/12 of the current year
[
'31/12',
42735,
],
// Excel reads as 1st December 1931, not 31st December in current year
[
'12/31',
11658,
],
// 05/07 of the current year
[
'5-JUL',
42556,
],
// 05/07 of the current year
[
'5 Jul',
42556,
],
[
'12/2008',
39783,
],
[
'10/32',
11963,
],
[
11,
'#VALUE!',
],
[
true,
'#VALUE!',
],
[
false,
'#VALUE!',
],
[
1,
'#VALUE!',
],
[
12345,
'#VALUE!',
],
[
12,
'#VALUE!',
],
[
'12-Feb-2010',
40221,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'Feb-12-2010',
40221,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'February-12-2010',
40221,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'February 12 2010',
40221,
],
[
'18 Feb 2010',
40227,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'17th 3rd 2010',
40254,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'Feb 18th 2010',
40227,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'1st Feb 2010',
40210,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'1st-Feb-2010',
40210,
],
[
'1me Fev 2010',
'#VALUE!',
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'February 1st 2010',
40210,
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'2nd Feb 2010',
40211,
],
[
'Second Feb 2010',
'#VALUE!',
],
[
'First August 2010',
'#VALUE!',
],
// MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
[
'1st August 2010',
40391,
],
[
'15:30:25',
0,
],
];

View File

@ -0,0 +1,34 @@
<?php
// Date Value, Result
return [
[
22269,
19,
],
[
30348,
1,
],
[
30843,
10,
],
[
'11-Nov-1918',
11,
],
[
'28-Feb-1904',
28,
],
[
'Invalid',
'#VALUE!',
],
[
-1,
'#NUM!',
],
];

View File

@ -0,0 +1,208 @@
<?php
return [
[
'ABC',
'2007-1-10',
false,
'#VALUE!',
],
[
'2007-1-1',
'DEF',
true,
'#VALUE!',
],
[
'2007-1-1',
'2007-1-10',
'XYZ',
'#VALUE!',
],
[
'2007-1-10',
'2007-1-1',
'Y',
'#VALUE!',
],
[
'2007-1-1',
'2007-1-10',
false,
9,
],
[
'2007-1-1',
'2007-1-10',
true,
9,
],
[
'2007-1-1',
'2007-12-31',
false,
360,
],
[
'2007-1-1',
'2007-12-31',
true,
359,
],
[
'2007-1-1',
'2008-7-1',
false,
540,
],
[
'2007-1-1',
'2008-7-1',
true,
540,
],
[
'2007-1-1',
'2007-1-31',
false,
30,
],
[
'2007-1-1',
'2007-1-31',
true,
29,
],
[
'2007-1-1',
'2007-2-1',
false,
30,
],
[
'2007-1-1',
'2007-2-1',
true,
30,
],
[
'2007-1-1',
'2007-2-28',
false,
57,
],
[
'2007-1-1',
'2007-2-28',
true,
57,
],
[
'2007-1-31',
'2007-2-1',
false,
1,
],
[
'2007-1-31',
'2007-2-1',
true,
1,
],
[
'2007-1-31',
'2007-3-1',
false,
31,
],
[
'2007-1-31',
'2007-3-1',
true,
31,
],
[
'2007-1-31',
'2007-3-31',
false,
60,
],
[
'2007-1-31',
'2007-3-31',
true,
60,
],
[
'2008-1-1',
'2008-9-1',
false,
240,
],
[
'2008-1-1',
'2008-9-1',
true,
240,
],
[
'2007-2-1',
'2008-4-1',
false,
420,
],
[
'2007-2-1',
'2008-4-1',
true,
420,
],
[
'1960-12-19',
'2008-6-28',
false,
17109,
],
[
'1960-12-19',
'2008-6-28',
true,
17109,
],
[
'1982-12-7',
'2008-6-28',
false,
9201,
],
[
'1982-12-7',
'2008-6-28',
true,
9201,
],
[
'2000-2-28',
'2000-3-31',
false,
33,
],
[
'2000-2-28',
'2000-3-31',
true,
32,
],
[
'2000-2-29',
'2000-3-31',
false,
30,
],
[
'2000-2-29',
'2000-3-31',
true,
31,
],
];

View File

@ -0,0 +1,79 @@
<?php
return [
[
'15-Jan-2008',
1,
39493,
],
[
'15-Jan-2008',
-1,
39431,
],
[
'15-Jan-2008',
2,
39522,
],
[
'31-Mar-2007',
1,
39202,
],
[
'31-Mar-2007',
-1,
39141,
],
[
'31-Mar-2008',
-1,
39507,
],
[
'31-Mar-2008',
-4,
39416,
],
[
'29-Feb-2008',
-12,
39141,
],
[
'15-Mar-2007',
3,
39248,
],
[
22269.0,
0,
22269,
],
[
22269.0,
2,
22331,
],
[
22269.0,
110,
25618,
],
[
22269.0,
-110,
18920,
],
[
'15-Mar-2007',
'ABC',
'#VALUE!',
],
[
'Invalid',
12,
'#VALUE!',
],
];

View File

@ -0,0 +1,89 @@
<?php
return [
[
'15-Jan-2008',
1,
39507,
],
[
'15-Jan-2008',
-1,
39447,
],
[
'15-Jan-2008',
2,
39538,
],
[
'31-Mar-2007',
1,
39202,
],
[
'31-Mar-2007',
-1,
39141,
],
[
'31-Mar-2008',
-1,
39507,
],
[
'31-Mar-2008',
-4,
39416,
],
[
'29-Feb-2008',
-12,
39141,
],
[
'15-Mar-2007',
3,
39263,
],
[
22269.0,
0,
22281,
],
[
22269.0,
2,
22340,
],
[
22269.0,
110,
25627,
],
[
22269.0,
-110,
18932,
],
[
22269.0,
3,
22371,
],
[
22269.0,
3.75,
22371,
],
[
'15-Mar-2007',
'ABC',
'#VALUE!',
],
[
'Invalid',
12,
'#VALUE!',
],
];

View File

@ -0,0 +1,52 @@
<?php
return [
[
0.25,
6,
],
[
0.75,
18,
],
[
0.5,
12,
],
[
0.59999999999999998,
14,
],
[
'11-Nov-1918 11:11',
11,
],
[
'11:59 PM',
23,
],
[
'23:59:59',
23,
],
[
3600,
0,
],
[
-3600,
'#NUM!',
],
[
7200,
0,
],
[
65535,
0,
],
[
'1 O\'Clock',
'#VALUE!',
],
];

View File

@ -0,0 +1,52 @@
<?php
return [
[
0.20000000000000001,
48,
],
[
0.40000000000000002,
36,
],
[
0.59999999999999998,
24,
],
[
0.80000000000000004,
12,
],
[
'11-Nov-1918 11:15',
15,
],
[
'11:59 PM',
59,
],
[
'23:59:59',
59,
],
[
3600,
0,
],
[
-3600,
'#NUM!',
],
[
12500,
0,
],
[
65535,
0,
],
[
'Half past 1 O\'Clock',
'#VALUE!',
],
];

View File

@ -0,0 +1,52 @@
<?php
return [
[
null,
1,
],
[
0,
1,
],
[
22269.0,
12,
],
[
30348.0,
2,
],
[
30843.0,
6,
],
[
'11-Nov-1918',
11,
],
[
'28-Feb-1904',
2,
],
[
'01 Jul 2003',
7,
],
[
38094,
4,
],
[
'Dec 2003',
12,
],
[
-10,
'#NUM!',
],
[
'ABCD',
'#VALUE!',
],
];

View File

@ -0,0 +1,103 @@
<?php
return [
[
'1-Jan-2007',
'10-Jan-2007',
8,
],
[
'18-Jun-2008',
'20-Jun-2008',
3,
],
[
'16-Jun-2008',
'20-Jun-2008',
5,
],
[
'14-Jun-2008',
'20-Jun-2008',
5,
],
[
'20-Jun-2008',
'20-Jun-2008',
1,
],
[
'21-Jun-2008',
'21-Jun-2008',
0,
],
[
'20-Jun-2008',
'20-Jun-2008',
'20-Jun-2008',
0,
],
[
'20-Jun-2008',
'20-Jun-2008',
'20-Jun-2008',
'20-Jun-2008',
0,
],
[
'14-Jun-2008',
'25-Jun-2008',
8,
],
[
'19-Dec-1960',
'10-Jan-1961',
17,
],
[
'10-Jan-1961',
'19-Dec-1960',
-17,
],
[
'19-Dec-1960',
'10-Jan-1961',
'25-Dec-1960',
'26-Dec-1960',
'01-Jan-1961',
16,
],
[
'10-Jan-1961',
'19-Dec-1960',
'25-Dec-1960',
'26-Dec-1960',
'01-Jan-1961',
-16,
],
[
'1-Jan-2007',
'31-Mar-2007',
65,
],
[
'1-Jan-2007',
'31-Jan-2007',
23,
],
[
'1-Jan-2007',
'1-Feb-2007',
24,
],
[
'1-Jan-2007',
'28-Feb-2007',
43,
],
[
'31-Jan-2007',
'1-Feb-2007',
2,
],
];

View File

@ -0,0 +1,52 @@
<?php
return [
[
0.2339930556,
57,
],
[
0.4202893519,
13,
],
[
0.60789351849999995,
22,
],
[
0.80221064809999998,
11,
],
[
'11-Nov-1918 11:15:35',
35,
],
[
'11:59 PM',
0,
],
[
'23:59:59',
59,
],
[
3600,
0,
],
[
-3601,
'#NUM!',
],
[
12500,
0,
],
[
65535,
0,
],
[
'Half past 1 O\'Clock',
'#VALUE!',
],
];

View File

@ -0,0 +1,136 @@
<?php
return [
[
18,
11,
11,
0.75776620370400005,
],
[
6,
15,
5,
0.26047453703700002,
],
[
12,
30,
10,
0.52094907407400004,
],
[
18,
45,
25,
0.78153935185199996,
],
[
15,
32,
50,
0.64780092592600003,
],
[
12,
null,
61,
0.50070601851899998,
],
[
11,
null,
-1,
0.45832175925899998,
],
[
10,
null,
-67,
0.41589120370400001,
],
[
13,
62,
5,
0.58478009259300001,
],
[
9,
-80,
17,
0.31964120370400001,
],
[
8,
-162,
null,
0.22083333333300001,
],
[
2,
-120,
-1,
'#NUM!',
],
[
2,
-120,
null,
0.0,
],
[
2,
-120,
1,
1.1574074E-5,
],
[
36,
1,
2,
0.50071759259299997,
],
[
-1,
2,
3,
'#NUM!',
],
[
-1,
61,
29,
0.001030092593,
],
[
-1,
61,
-60,
0.0,
],
[
'A',
null,
null,
'#VALUE!',
],
[
11,
59,
0,
0.49930555555599998,
],
[
12,
0,
0,
0.5,
],
[
16,
48,
10,
0.70011574074100003,
],
];

View File

@ -0,0 +1,56 @@
<?php
return [
[
'12:00:00 am',
0,
],
[
'12:01:02 am',
0.00071759299999999999,
],
[
'12:03 pm',
0.50208333299999997,
],
[
'12:7:11 pm',
0.50498842600000005,
],
[
'4:13:39',
0.176145833,
],
[
'6:20:17 pm',
0.76408564800000001,
],
[
'18:33:27',
0.773229167,
],
[
'31/12/2007 03:27:15',
0.14392361100000001,
],
[
'9:44:55 pm',
0.90619212999999998,
],
[
12,
'#VALUE!',
],
[
'13:01',
0.54236111099999995,
],
[
'33:45',
0.40625,
],
[
'13:01PM',
'#VALUE!',
],
];

View File

@ -0,0 +1,130 @@
<?php
return [
[
'24-Oct-1968',
5,
],
[
'24-Oct-1968',
2,
4,
],
[
'24-Oct-1968',
3,
3,
],
[
'2000-06-14',
4,
],
[
'2000-06-14',
2,
3,
],
[
'2000-06-14',
3,
2,
],
[
'1996-07-24',
4,
],
[
'1996-07-24',
2,
3,
],
[
'1996-07-24',
3,
2,
],
[
'1996-07-27',
7,
],
[
'1996-07-27',
2,
6,
],
[
'1996-07-27',
3,
5,
],
[
'1977-7-31',
1,
],
[
'1977-7-31',
2,
7,
],
[
'1977-7-31',
3,
6,
],
[
'1977-8-1',
2,
],
[
'1977-8-1',
2,
1,
],
[
'1977-8-1',
3,
0,
],
[
'1900-2-5',
2,
7,
],
[
'1900-2-1',
1,
],
[
38093,
6,
],
[
38093,
2,
5,
],
[
38093,
3,
4,
],
[
'3/7/1977',
'A',
'#VALUE!',
],
[
'3/7/1977',
0,
'#NUM!',
],
[
'Invalid',
1,
'#VALUE!',
],
[
-1,
'#NUM!',
],
];

View File

@ -0,0 +1,37 @@
<?php
return [
[
'21-Dec-2000',
1,
52,
],
[
'1995-01-01',
1,
1,
],
[
'3/7/1977',
27,
],
[
'3/7/1977',
'A',
'#VALUE!',
],
[
'3/7/1977',
0,
'#NUM!',
],
[
'Invalid',
1,
'#VALUE!',
],
[
-1,
'#NUM!',
],
];

View File

@ -0,0 +1,92 @@
<?php
return [
[
'1-Jan-2007',
'ABC',
'#VALUE!',
],
[
'1-Jan-2007',
9,
39094,
],
[
'18-Jun-2008',
2,
39619,
],
[
'16-Jun-2008',
4,
39619,
],
[
'14-Jun-2008',
6,
39622,
],
[
'14-Jun-2008',
11,
39629,
],
[
'14-Jun-2008',
-2,
39611,
],
[
'14-Jun-2008',
-6,
39605,
],
[
'19-Dec-2008',
10,
39815,
],
[
'19-Dec-2008',
10,
'25-Dec-2008',
'26-Dec-2008',
'01-Jan-2009',
39820,
],
[
'19-Dec-2008',
10,
[
[
'25-Dec-2008',
'26-Dec-2008',
'01-Jan-2009',
],
],
39820,
],
[
39820,
-10,
[
[
'25-Dec-2008',
'26-Dec-2008',
'01-Jan-2009',
],
],
39801,
],
[
'5-Apr-2012',
3,
[
[
'6-Apr-2012',
'9-Apr-2012',
],
],
41010,
],
];

View File

@ -0,0 +1,48 @@
<?php
return [
[
null,
1900,
],
[
1,
1900,
],
[
33333.330000000002,
1991,
],
[
22269.0,
1960,
],
[
30348.0,
1983,
],
[
30843.0,
1984,
],
[
'01 Jan 2525',
2525,
],
[
'11-Nov-1918',
1918,
],
[
'28-Feb-1904',
1904,
],
[
-10,
'#NUM!',
],
[
'ABCD',
'#VALUE!',
],
];

View File

@ -0,0 +1,394 @@
<?php
return [
[
'2007-1-1',
'2007-1-10',
0,
0.025000000000000001,
],
[
'2007-1-1',
'2007-1-10',
1,
0.024657534246580001,
],
[
'2007-1-1',
'2007-1-10',
2,
0.025000000000000001,
],
[
'2007-1-1',
'2007-1-10',
3,
0.024657534246580001,
],
[
'2007-1-1',
'2007-1-10',
4,
0.025000000000000001,
],
[
'2007-1-1',
'2007-12-31',
0,
1.0,
],
[
'2007-1-1',
'2007-12-31',
1,
0.99726027397259998,
],
[
'2007-1-1',
'2007-12-31',
2,
1.01111111111111,
],
[
'2007-1-1',
'2007-12-31',
3,
0.99726027397259998,
],
[
'2007-1-1',
'2007-12-31',
4,
0.99722222222222001,
],
[
'2007-1-1',
'2008-7-1',
0,
1.5,
],
[
'2007-1-1',
'2008-7-1',
1,
1.49658002735978,
],
[
'2007-1-1',
'2008-7-1',
2,
1.5194444444444399,
],
[
'2007-1-1',
'2008-7-1',
3,
1.4986301369863,
],
[
'2007-1-1',
'2008-7-1',
4,
1.5,
],
[
'2007-1-1',
'2007-1-31',
0,
0.083333333333329998,
],
[
'2007-1-1',
'2007-1-31',
1,
0.082191780821919996,
],
[
'2007-1-1',
'2007-1-31',
2,
0.083333333333329998,
],
[
'2007-1-1',
'2007-1-31',
3,
0.082191780821919996,
],
[
'2007-1-1',
'2007-1-31',
4,
0.080555555555560002,
],
[
'2007-1-1',
'2007-2-1',
0,
0.083333333333329998,
],
[
'2007-1-1',
'2007-2-1',
1,
0.084931506849319993,
],
[
'2007-1-1',
'2007-2-1',
2,
0.08611111111111,
],
[
'2007-1-1',
'2007-2-1',
3,
0.084931506849319993,
],
[
'2007-1-1',
'2007-2-1',
4,
0.083333333333329998,
],
[
'2007-1-1',
'2007-2-28',
0,
0.15833333333333,
],
[
'2007-1-1',
'2007-2-28',
1,
0.15890410958904,
],
[
'2007-1-1',
'2007-2-28',
2,
0.16111111111111001,
],
[
'2007-1-1',
'2007-2-28',
3,
0.15890410958904,
],
[
'2007-1-1',
'2007-2-28',
4,
0.15833333333333,
],
[
'2007-1-31',
'2007-2-1',
0,
0.0027777777777800001,
],
[
'2007-1-31',
'2007-2-1',
1,
0.0027397260273999999,
],
[
'2007-1-31',
'2007-2-1',
2,
0.0027777777777800001,
],
[
'2007-1-31',
'2007-2-1',
3,
0.0027397260273999999,
],
[
'2007-1-31',
'2007-2-1',
4,
0.0027777777777800001,
],
[
'2007-1-31',
'2007-3-1',
0,
0.08611111111111,
],
[
'2007-1-31',
'2007-3-1',
1,
0.07945205479452,
],
[
'2007-1-31',
'2007-3-1',
2,
0.080555555555560002,
],
[
'2007-1-31',
'2007-3-1',
3,
0.07945205479452,
],
[
'2007-1-31',
'2007-3-1',
4,
0.08611111111111,
],
[
'2007-1-31',
'2007-3-31',
0,
0.16666666666666999,
],
[
'2007-1-31',
'2007-3-31',
1,
0.16164383561644,
],
[
'2007-1-31',
'2007-3-31',
2,
0.16388888888889,
],
[
'2007-1-31',
'2007-3-31',
3,
0.16164383561644,
],
[
'2007-1-31',
'2007-3-31',
4,
0.16666666666666999,
],
[
'2008-1-1',
'2008-9-1',
0,
0.66666666666666996,
],
[
'2008-1-1',
'2008-9-1',
1,
0.66666666666666996,
],
[
'2008-1-1',
'2008-9-1',
2,
0.67777777777778003,
],
[
'2008-1-1',
'2008-9-1',
3,
0.66849315068492998,
],
[
'2008-1-1',
'2008-9-1',
4,
0.66666666666666996,
],
[
'2007-2-1',
'2008-4-1',
0,
1.1666666666666701,
],
[
'2007-2-1',
'2008-4-1',
1,
1.16279069767442,
],
[
'2007-2-1',
'2008-4-1',
2,
1.18055555555556,
],
[
'2007-2-1',
'2008-4-1',
3,
1.16438356164384,
],
[
'2007-2-1',
'2008-4-1',
4,
1.1666666666666701,
],
[
'1960-12-19',
'2008-6-28',
0,
47.524999999999999,
],
[
'1960-12-19',
'2008-6-28',
1,
47.521622527656703,
],
[
'1960-12-19',
'2008-6-28',
2,
48.216666666666697,
],
[
'1960-12-19',
'2008-6-28',
3,
47.556164383561601,
],
[
'1960-12-19',
'2008-6-28',
4,
47.524999999999999,
],
[
'1982-12-7',
'2008-6-28',
0,
25.558333333333302,
],
[
'1982-12-7',
'2008-6-28',
1,
25.5571892111134,
],
[
'1982-12-7',
'2008-6-28',
2,
25.9305555555556,
],
[
'1982-12-7',
'2008-6-28',
3,
25.575342465753401,
],
[
'1982-12-7',
'2008-6-28',
4,
25.558333333333302,
],
];

View File

@ -0,0 +1,279 @@
<?php
return [
[
1.5,
-1,
'#NUM!',
],
[
-1,
6,
2.249E-5,
],
[
0,
3,
0.0,
],
[
3,
0,
4.8807925900000004,
],
[
1,
5,
0.00027146000000000001,
],
[
1.5,
1,
0.98166642999999998,
],
[
-1.5,
2.5,
0.33783461999999997,
],
[
-1.5,
14.99,
0.0,
],
[
1,
30,
0.0,
],
[
2.5,
1,
2.51671625,
],
[
2.5,
1.5,
2.51671625,
],
[
-2.5,
1.5,
-2.51671625,
],
[
3.5,
1,
6.20583492,
],
[
0.69999999999999996,
3,
0.0073673699999999998,
],
[
3.5,
2,
3.8320120499999999,
],
[
1.5,
'XYZ',
'#VALUE!',
],
[
'ABC',
3,
'#VALUE!',
],
[
-9,
1,
-1030.9147225199999,
],
[
-3.5,
1,
-6.20583492,
],
[
-0.73499999999999999,
1,
-0.39288151999999998,
],
[
0,
1,
0.0,
],
[
0.035000000000000003,
1,
0.01750268,
],
[
1,
1,
0.56515910000000003,
],
[
1.5,
1,
0.98166642999999998,
],
[
2.5,
1,
2.51671625,
],
[
3.5,
1,
6.20583492,
],
[
-9,
2,
864.49619395000002,
],
[
-3.5,
2,
3.8320120499999999,
],
[
-0.73499999999999999,
2,
0.070619940000000006,
],
[
0,
2,
0.0,
],
[
0.035000000000000003,
2,
0.00015313999999999999,
],
[
0.90000000000000002,
2,
0.10825973,
],
[
1,
2,
0.13574766999999999,
],
[
1.8999999999999999,
2,
0.60327242999999997,
],
[
2.5,
2,
1.2764661500000001,
],
[
3.5,
2,
3.8320120499999999,
],
[
4,
2,
6.4221893799999998,
],
[
0.035000000000000003,
3,
8.8999999999999995E-7,
],
[
0.69999999999999996,
3,
0.0073673699999999998,
],
[
0.89000000000000001,
3,
0.0154285,
],
[
4,
3,
3.3372757800000001,
],
[
4,
5,
0.50472435999999998,
],
[
1.5,
7,
2.8410000000000001E-5,
],
[
3,
9,
0.00013237000000000001,
],
[
-3.5,
0,
7.3782034300000001,
],
[
-1.5,
0,
1.6467231899999999,
],
[
0,
0,
1.0,
],
[
1,
0,
1.26606588,
],
[
1.5,
0,
1.6467231899999999,
],
[
2.5,
0,
3.2898391400000002,
],
[
3.5,
0,
7.3782034300000001,
],
[
-3.5,
-1,
'#NUM!',
],
[
true,
1,
'#VALUE!',
],
[
1,
true,
'#VALUE!',
],
[
21,
2,
104777847.71856035,
],
];

View File

@ -0,0 +1,169 @@
<?php
return [
[
1.5,
-1,
'#NUM!',
],
[
0,
1,
0.0,
],
[
1,
1,
0.44005059000000002,
],
[
1,
5,
0.00024976000000000002,
],
[
1.8999999999999999,
2,
0.32992572999999997,
],
[
-2.5,
1.5,
-0.49709409999999998,
],
[
3.5,
1,
0.13737753,
],
[
0.89000000000000001,
3,
0.013974,
],
[
3.5,
2,
0.45862918000000003,
],
[
1.5,
'XYZ',
'#VALUE!',
],
[
'ABC',
3,
'#VALUE!',
],
[
-3.5,
1,
-0.13737753,
],
[
-0.73499999999999999,
1,
-0.34323577999999999,
],
[
0,
1,
0.0,
],
[
0.035000000000000003,
1,
0.01749732,
],
[
1.5,
1,
0.55793651,
],
[
2.5,
1,
0.49709409999999998,
],
[
3.5,
1,
0.13737753,
],
[
-9,
2,
0.14484733999999999,
],
[
-0.73499999999999999,
2,
0.064538960000000006,
],
[
0,
2,
0.0,
],
[
0.90000000000000002,
2,
0.094586299999999998,
],
[
1.8999999999999999,
2,
0.32992572999999997,
],
[
0.035000000000000003,
2,
0.00015311,
],
[
3.5,
2,
0.45862918000000003,
],
[
4,
2,
0.36412814999999998,
],
[
0.035000000000000003,
3,
8.8999999999999995E-7,
],
[
0.69999999999999996,
3,
0.0069296499999999999,
],
[
0.89000000000000001,
3,
0.013974,
],
[
4,
3,
0.43017147,
],
[
4,
5,
0.13208665999999999,
],
[
1.5,
7,
2.4680000000000001E-5,
],
[
3,
9,
8.4400000000000005E-5,
],
];

View File

@ -0,0 +1,194 @@
<?php
return [
[
1.5,
-1,
'#NUM!',
],
[
0,
2,
'#NUM!',
],
[
0.10000000000000001,
3,
7990.0124327800004,
],
[
1,
0,
0.42102444,
],
[
1.5,
0,
0.21380557,
],
[
-1.5,
2,
'#NUM!',
],
[
1.5,
1,
0.27738780000000002,
],
[
1.5,
2,
0.58365597000000002,
],
[
2.2999999999999998,
1.5,
0.094982449999999996,
],
[
2.5,
1,
0.073890819999999996,
],
[
3.5,
1,
0.022239390000000001,
],
[
3.5,
3,
0.059161819999999997,
],
[
3,
9,
397.95880105999998,
],
[
3.5,
2,
0.032307120000000002,
],
[
1.5,
'XYZ',
'#VALUE!',
],
[
'ABC',
3,
'#VALUE!',
],
[
-3.5,
1,
'#NUM!',
],
[
-0.73499999999999999,
1,
'#NUM!',
],
[
0,
1,
'#NUM!',
],
[
0.035000000000000003,
1,
28.50197,
],
[
1.5,
1,
0.27738780000000002,
],
[
2.5,
1,
0.073890819999999996,
],
[
3.5,
1,
0.022239390000000001,
],
[
-9,
2,
'#NUM!',
],
[
-0.73499999999999999,
2,
'#NUM!',
],
[
0,
2,
'#NUM!',
],
[
0.90000000000000002,
2,
2.0790271499999999,
],
[
1.8999999999999999,
2,
0.29690929999999999,
],
[
0.035000000000000003,
2,
1632.1537072900001,
],
[
3.5,
2,
0.032307120000000002,
],
[
4,
2,
0.017401429999999999,
],
[
0.035000000000000003,
3,
186560.35423214,
],
[
0.69999999999999996,
3,
21.972169050000002,
],
[
0.89000000000000001,
3,
10.31747315,
],
[
4,
3,
0.029884919999999999,
],
[
4,
5,
0.15434255,
],
[
1.5,
7,
2457.7004395499998,
],
[
3,
9,
397.95880105999998,
],
];

View File

@ -0,0 +1,119 @@
<?php
return [
[
1.5,
-1,
'#NUM!',
],
[
2.5,
0,
0.49807035999999999,
],
[
2.5,
1,
0.14591814,
],
[
2.5,
2,
-0.38133584999999998,
],
[
3.5,
1,
0.41018842,
],
[
3.5,
3,
-0.35833535,
],
[
3.5,
2,
0.045371439999999999,
],
[
12.5,
0,
-0.17121431000000001,
],
[
1.5,
'XYZ',
'#VALUE!',
],
[
'ABC',
3,
'#VALUE!',
],
[
-3.5,
1,
'#NUM!',
],
[
-0.73499999999999999,
1,
'#NUM!',
],
[
0,
1,
'#NUM!',
],
[
1.5,
1,
-0.41230863000000001,
],
[
2.5,
1,
0.14591814,
],
[
3.5,
1,
0.41018842,
],
[
-9,
2,
'#NUM!',
],
[
-0.73499999999999999,
2,
'#NUM!',
],
[
0,
2,
'#NUM!',
],
[
0.90000000000000002,
2,
-1.9459096,
],
[
1.8999999999999999,
2,
-0.66987867999999995,
],
[
3.5,
2,
0.045371439999999999,
],
[
4,
5,
-0.79585141999999998,
],
];

View File

@ -0,0 +1,49 @@
<?php
return [
[
'10110010',
'178',
],
[
'1100100',
'100',
],
// Too large
[
'111001010101',
'#NUM!',
],
[
'101',
'5',
],
[
'10',
'2',
],
[
'0',
'0',
],
// Invalid binary number
[
'21',
'#NUM!',
],
// Non string
[
true,
'#VALUE!',
],
// 2's Complement
[
'1110010101',
'-107',
],
// 2's Complement
[
'1111111111',
'-1',
],
];

View File

@ -0,0 +1,73 @@
<?php
return [
[
'10110010',
'B2',
],
// Too large
[
'111001010101',
'#NUM!',
],
// Leading places
[
'11111011',
4,
'00FB',
],
// Leading places as a float
[
'11111011',
3.75,
'0FB',
],
// Leading places negative
[
'11111011',
-1,
'#NUM!',
],
// Leading places non-numeric
[
'11111011',
'ABC',
'#VALUE!',
],
[
'1110',
'E',
],
[
'101',
'5',
],
[
'10',
'2',
],
[
'0',
'0',
],
// Invalid binary number
[
'21',
'#NUM!',
],
// Non string
[
true,
'#VALUE!',
],
// 2's Complement
[
'1110010101',
'FFFFFFFF95',
],
// 2's Complement
[
'1111111111',
'FFFFFFFFFF',
],
];

View File

@ -0,0 +1,77 @@
<?php
return [
[
'1100100',
'144',
],
[
'10110010',
'262',
],
// Too large
[
'111001010101',
'#NUM!',
],
// Leading places
[
'1001',
3,
'011',
],
// Leading places as a float
[
'1001',
4.75,
'0011',
],
// Leading places negative
[
'1001',
-1,
'#NUM!',
],
// Leading places non-numeric
[
'1001',
'ABC',
'#VALUE!',
],
[
'00000010',
'2',
],
[
'00000101',
'5',
],
[
'00001101',
'15',
],
[
'0',
'0',
],
// Invalid binary number
[
'21',
'#NUM!',
],
// Non string
[
true,
'#VALUE!',
],
// 2's Complement
[
'1110010101',
'7777777625',
],
// 2's Complement
[
'1111111111',
'7777777777',
],
];

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,148 @@
<?php
return [
[
1.0,
'lbm',
'kg',
0.45359230974880999,
],
[
123.45,
'kg',
'kg',
123.45,
],
[
68,
'F',
'C',
20,
],
[
20,
'C',
'F',
68,
],
[
68,
'F',
'K',
293.14999999999998,
],
[
293.14999999999998,
'K',
'F',
68,
],
[
22,
'C',
'K',
295.14999999999998,
],
[
295.64999999999998,
'K',
'C',
22.5,
],
[
2.5,
'ft',
'sec',
'#N/A',
],
[
12345,
'm',
'km',
12.345000000000001,
],
[
12.345000000000001,
'km',
'm',
12345,
],
[
1,
'km',
'mi',
0.62137119223732995,
],
[
'three',
'ft',
'yds',
'#VALUE!',
],
[
123.45,
'K',
'kel',
123.45,
],
[
123.45,
'C',
'cel',
123.45,
],
[
123.45,
'F',
'fah',
123.45,
],
[
1,
'ft',
'day',
'#N/A',
],
[
123.45,
'm',
'm',
123.45,
],
[
234.56,
'km',
'km',
234.56,
],
[
234.56,
'kpt',
'lt',
'#N/A',
],
[
234.56,
'sm',
'm',
'#N/A',
],
[
234.56,
'lt',
'kpt',
'#N/A',
],
[
234.56,
'm',
'sm',
'#N/A',
],
[
12.345000000000001,
'km',
'mm',
12345000,
],
];

View File

@ -0,0 +1,91 @@
<?php
return [
[
357,
'101100101',
],
// Too large
[
512,
'#NUM!',
],
// Too small
[
-513,
'#NUM!',
],
[
9,
4,
'1001',
],
[
9,
8,
'00001001',
],
// Leading places as a float
[
9,
6.75,
'001001',
],
// Leading places negative
[
9,
-1,
'#NUM!',
],
// Leading places non-numeric
[
9,
'ABC',
'#VALUE!',
],
[
246,
'11110110',
],
[
12345,
'#NUM!',
],
[
123456789,
'#NUM!',
],
[
123.45,
'1111011',
],
[
0,
'0',
],
// Invalid decimal
[
'3579A',
'#VALUE!',
],
// Non string
[
true,
'#VALUE!',
],
// 2's Complement
[
-100,
'1110011100',
],
// 2's Complement
[
-107,
'1110010101',
],
// 2's Complement
[
-512,
'1000000000',
],
];

View File

@ -0,0 +1,75 @@
<?php
return [
[
'357',
'165',
],
[
'1357',
'54D',
],
[
'246',
'F6',
],
[
'12345',
'3039',
],
[
'123456789',
'75BCD15',
],
[
'100',
4,
'0064',
],
// Leading places as a float
[
'100',
5.75,
'00064',
],
// Leading places negative
[
'100',
-1,
'#NUM!',
],
// Leading places non-numeric
[
'100',
'ABC',
'#VALUE!',
],
[
'123.45',
'7B',
],
[
'0',
'0',
],
// Invalid decimal
[
'3579A',
'#VALUE!',
],
// Non string
[
true,
'#VALUE!',
],
// 2's Complement
[
'-54',
'FFFFFFFFCA',
],
// 2's Complement
[
'-107',
'FFFFFFFF95',
],
];

View File

@ -0,0 +1,57 @@
<?php
return [
[
'357',
'545',
],
[
'1357',
'2515',
],
[
'246',
'366',
],
[
'12345',
'30071',
],
[
'123456789',
'726746425',
],
[
'123.45',
'173',
],
[
'58',
3,
'072',
],
[
'0',
'0',
],
// Invalid decimal
[
'3579A',
'#VALUE!',
],
// Non string
[
true,
'#VALUE!',
],
// 2's Complement
[
'-100',
'7777777634',
],
// 2's Complement
[
'-107',
'7777777625',
],
];

View File

@ -0,0 +1,129 @@
<?php
return [
[
-1.5,
-1.5,
1,
],
[
-0.75,
-1.5,
0,
],
[
0,
-1.5,
0,
],
[
0.75,
-1.5,
0,
],
[
1.5,
-1.5,
0,
],
[
-1.5,
-0.75,
0,
],
[
-0.75,
-0.75,
1,
],
[
0,
-0.75,
0,
],
[
0.75,
-0.75,
0,
],
[
1.5,
-0.75,
0,
],
[
-1.5,
0,
0,
],
[
-0.75,
0,
0,
],
[
0,
0,
1,
],
[
0.75,
0,
0,
],
[
1.5,
0,
0,
],
[
-1.5,
0.75,
0,
],
[
-0.75,
0.75,
0,
],
[
0,
0.75,
0,
],
[
0.75,
0.75,
1,
],
[
1.5,
0.75,
0,
],
[
-1.5,
1.5,
0,
],
[
-0.75,
1.5,
0,
],
[
0,
1.5,
0,
],
[
0.75,
1.5,
0,
],
[
1.5,
1.5,
1,
],
];

View File

@ -0,0 +1,581 @@
<?php
// lower, bound, upper bound, Result
return [
[
0,
0.0,
],
[
0.01,
0.0112834155558496,
],
[
0.050000000000000003,
0.056371977797016602,
],
[
0.10000000000000001,
0.11246291601828499,
],
[
0.125,
0.140316204801334,
],
[
0.14999999999999999,
0.167995971427363,
],
[
0.20000000000000001,
0.222702589210478,
],
[
0.25,
0.27632639016823701,
],
[
0.29999999999999999,
0.328626759459127,
],
[
0.34999999999999998,
0.37938205356230997,
],
[
0.40000000000000002,
0.42839235504666801,
],
[
0.45000000000000001,
0.475481719786924,
],
[
0.5,
0.52049987781304696,
],
[
0.59999999999999998,
0.60385609084792602,
],
[
0.69999999999999996,
0.67780119383741799,
],
[
0.80000000000000004,
0.74210096470766096,
],
[
0.90000000000000002,
0.79690821242283205,
],
[
1,
0.84270079294971501,
],
[
1.1000000000000001,
0.88020506957408196,
],
[
1.2,
0.910313978229635,
],
[
1.3,
0.93400794494065198,
],
[
1.3999999999999999,
0.95228511976264896,
],
[
1.5,
0.96610514647531098,
],
[
1.75,
0.98667167121918198,
],
[
2,
0.99532226501895305,
],
[
2.5,
0.99959304798255499,
],
[
3,
0.99997790950300103,
],
[
3.5,
0.99999925690162805,
],
[
4,
0.99999998458274197,
],
[
4.5,
0.99999999980338405,
],
[
5,
0.99999999999846301,
],
[
5.5,
0.99999999999999301,
],
[
6,
1.0,
],
[
32,
1.0,
],
[
-0.10000000000000001,
-0.11246291601828499,
],
[
-1,
-0.84270079294971501,
],
[
true,
'#VALUE!',
],
[
false,
'#VALUE!',
],
[
'2',
0.99532226501895305,
],
[
'TWO',
'#VALUE!',
],
[
-1.5,
-1.5,
0.0,
],
[
-0.75,
-1.5,
-0.25494951282179601,
],
[
0,
-1.5,
-0.96610514647531098,
],
[
0.75,
-1.5,
-1.67726078012883,
],
[
1.5,
-1.5,
-1.93221029295062,
],
[
2.25,
-1.5,
-1.96464242988863,
],
[
3,
-1.5,
-1.96608305597831,
],
[
3.75,
-1.5,
-1.96610503274805,
],
[
4.5,
-1.5,
-1.96610514627869,
],
[
-1.5,
-0.75,
0.25494951282179601,
],
[
-0.75,
-0.75,
0.0,
],
[
0,
-0.75,
-0.71115563365351497,
],
[
0.75,
-0.75,
-1.4223112673070299,
],
[
1.5,
-0.75,
-1.67726078012883,
],
[
2.25,
-0.75,
-1.70969291706683,
],
[
3,
-0.75,
-1.71113354315652,
],
[
3.75,
-0.75,
-1.71115551992626,
],
[
4.5,
-0.75,
-1.7111556334569,
],
[
-1.5,
0,
0.96610514647531098,
],
[
-0.75,
0,
0.71115563365351497,
],
[
0,
0,
0.0,
],
[
0.75,
0,
-0.71115563365351497,
],
[
1.5,
0,
-0.96610514647531098,
],
[
2.25,
0,
-0.99853728341331904,
],
[
3,
0,
-0.99997790950300103,
],
[
3.75,
0,
-0.99999988627274305,
],
[
4.5,
0,
-0.99999999980338405,
],
[
-1.5,
0.75,
1.67726078012883,
],
[
-0.75,
0.75,
1.4223112673070299,
],
[
0,
0.75,
0.71115563365351497,
],
[
0.75,
0.75,
0.0,
],
[
1.5,
0.75,
-0.25494951282179601,
],
[
2.25,
0.75,
-0.28738164975980401,
],
[
3,
0.75,
-0.288822275849486,
],
[
3.75,
0.75,
-0.28884425261922803,
],
[
4.5,
0.75,
-0.28884436614986903,
],
[
-1.5,
1.5,
1.93221029295062,
],
[
-0.75,
1.5,
1.67726078012883,
],
[
0,
1.5,
0.96610514647531098,
],
[
0.75,
1.5,
0.25494951282179601,
],
[
1.5,
1.5,
0.0,
],
[
2.25,
1.5,
-0.032432136938008102,
],
[
3,
1.5,
-0.0338727630276906,
],
[
3.75,
1.5,
-0.033894739797432599,
],
[
4.5,
1.5,
-0.033894853328073203,
],
[
-1.5,
2.25,
1.96464242988863,
],
[
-0.75,
2.25,
1.70969291706683,
],
[
0,
2.25,
0.99853728341331904,
],
[
0.75,
2.25,
0.28738164975980401,
],
[
1.5,
2.25,
0.032432136938008102,
],
[
2.25,
2.25,
0.0,
],
[
3,
2.25,
-0.0014406260896824999,
],
[
3.75,
2.25,
-0.0014626028594246,
],
[
4.5,
2.25,
-0.0014627163900651,
],
[
-1.5,
3,
1.96608305597831,
],
[
-0.75,
3,
1.71113354315652,
],
[
0,
3,
0.99997790950300103,
],
[
0.75,
3,
0.288822275849486,
],
[
1.5,
3,
0.0338727630276906,
],
[
2.25,
3,
0.0014406260896824999,
],
[
3,
3,
0.0,
],
[
3.75,
3,
-2.1976769741999999E-5,
],
[
4.5,
3,
-2.2090300382599999E-5,
],
[
-1.5,
3.75,
1.96610503274805,
],
[
-0.75,
3.75,
1.71115551992626,
],
[
0,
3.75,
0.99999988627274305,
],
[
0.75,
3.75,
0.28884425261922803,
],
[
1.5,
3.75,
0.033894739797432599,
],
[
2.25,
3.75,
0.0014626028594246,
],
[
3,
3.75,
2.1976769741999999E-5,
],
[
3.75,
3.75,
0.0,
],
[
4.5,
3.75,
-1.135306406E-7,
],
[
-1.5,
4.5,
1.96610514627869,
],
[
-0.75,
4.5,
1.7111556334569,
],
[
0,
4.5,
0.99999999980338405,
],
[
0.75,
4.5,
0.28884436614986903,
],
[
1.5,
4.5,
0.033894853328073203,
],
[
2.25,
4.5,
0.0014627163900651,
],
[
3,
4.5,
2.2090300382599999E-5,
],
[
3.75,
4.5,
1.135306406E-7,
],
[
4.5,
4.5,
0.0,
],
[
5,
-1,
-1.84270079294818,
],
[
-5,
1,
1.84270079294818,
],
];

View File

@ -0,0 +1,166 @@
<?php
// x value, Result
return [
[
0,
1.0,
],
[
0.01,
0.98871658444415,
],
[
0.050000000000000003,
0.94362802220298303,
],
[
0.10000000000000001,
0.88753708398171505,
],
[
0.125,
0.859683795198666,
],
[
0.14999999999999999,
0.832004028572636,
],
[
0.20000000000000001,
0.77729741078952197,
],
[
0.25,
0.72367360983176299,
],
[
0.29999999999999999,
0.671373240540873,
],
[
0.34999999999999998,
0.62061794643768997,
],
[
0.40000000000000002,
0.57160764495333205,
],
[
0.45000000000000001,
0.524518280213076,
],
[
0.5,
0.47950012218695298,
],
[
0.59999999999999998,
0.39614390915207398,
],
[
0.69999999999999996,
0.32219880616258201,
],
[
0.80000000000000004,
0.25789903529233899,
],
[
0.90000000000000002,
0.203091787577168,
],
[
1,
0.15729920705028499,
],
[
1.1000000000000001,
0.119794930425918,
],
[
1.2,
0.089686021770364596,
],
[
1.3,
0.065992055059347507,
],
[
1.3999999999999999,
0.047714880237351202,
],
[
1.5,
0.033894853524689302,
],
[
1.75,
0.0133283287808176,
],
[
2,
0.0046777349810473001,
],
[
2.5,
0.00040695201744500001,
],
[
3,
2.20904969986E-5,
],
[
3.5,
7.4309837229999996E-7,
],
[
4,
1.54172579E-8,
],
[
4.5,
1.9661600000000001E-10,
],
[
5,
1.5375000000000001E-12,
],
[
5.5,
7.4000000000000003E-15,
],
[
6,
0.0,
],
[
32,
0.0,
],
[
-0.10000000000000001,
1.1124629160182899,
],
[
-1,
1.8427007929497099,
],
[
true,
'#VALUE!',
],
[
false,
'#VALUE!',
],
[
'2',
0.0046777349810473001,
],
[
'TWO',
'#VALUE!',
],
];

View File

@ -0,0 +1,409 @@
<?php
return [
[
-1.5,
-1.5,
1,
],
[
-0.75,
-1.5,
1,
],
[
0,
-1.5,
1,
],
[
0.75,
-1.5,
1,
],
[
1.5,
-1.5,
1,
],
[
2.25,
-1.5,
1,
],
[
3,
-1.5,
1,
],
[
3.75,
-1.5,
1,
],
[
4.5,
-1.5,
1,
],
[
-1.5,
-0.75,
0,
],
[
-0.75,
-0.75,
1,
],
[
0,
-0.75,
1,
],
[
0.75,
-0.75,
1,
],
[
1.5,
-0.75,
1,
],
[
2.25,
-0.75,
1,
],
[
3,
-0.75,
1,
],
[
3.75,
-0.75,
1,
],
[
4.5,
-0.75,
1,
],
[
-1.5,
0,
0,
],
[
-0.75,
0,
0,
],
[
0,
0,
1,
],
[
0.75,
0,
1,
],
[
1.5,
0,
1,
],
[
2.25,
0,
1,
],
[
3,
0,
1,
],
[
3.75,
0,
1,
],
[
4.5,
0,
1,
],
[
-1.5,
0.75,
0,
],
[
-0.75,
0.75,
0,
],
[
0,
0.75,
0,
],
[
0.75,
0.75,
1,
],
[
1.5,
0.75,
1,
],
[
2.25,
0.75,
1,
],
[
3,
0.75,
1,
],
[
3.75,
0.75,
1,
],
[
4.5,
0.75,
1,
],
[
-1.5,
1.5,
0,
],
[
-0.75,
1.5,
0,
],
[
0,
1.5,
0,
],
[
0.75,
1.5,
0,
],
[
1.5,
1.5,
1,
],
[
2.25,
1.5,
1,
],
[
3,
1.5,
1,
],
[
3.75,
1.5,
1,
],
[
4.5,
1.5,
1,
],
[
-1.5,
2.25,
0,
],
[
-0.75,
2.25,
0,
],
[
0,
2.25,
0,
],
[
0.75,
2.25,
0,
],
[
1.5,
2.25,
0,
],
[
2.25,
2.25,
1,
],
[
3,
2.25,
1,
],
[
3.75,
2.25,
1,
],
[
4.5,
2.25,
1,
],
[
-1.5,
3,
0,
],
[
-0.75,
3,
0,
],
[
0,
3,
0,
],
[
0.75,
3,
0,
],
[
1.5,
3,
0,
],
[
2.25,
3,
0,
],
[
3,
3,
1,
],
[
3.75,
3,
1,
],
[
4.5,
3,
1,
],
[
-1.5,
3.75,
0,
],
[
-0.75,
3.75,
0,
],
[
0,
3.75,
0,
],
[
0.75,
3.75,
0,
],
[
1.5,
3.75,
0,
],
[
2.25,
3.75,
0,
],
[
3,
3.75,
0,
],
[
3.75,
3.75,
1,
],
[
4.5,
3.75,
1,
],
[
-1.5,
4.5,
0,
],
[
-0.75,
4.5,
0,
],
[
0,
4.5,
0,
],
[
0.75,
4.5,
0,
],
[
1.5,
4.5,
0,
],
[
2.25,
4.5,
0,
],
[
3,
4.5,
0,
],
[
3.75,
4.5,
0,
],
[
4.5,
4.5,
1,
],
];

View File

@ -0,0 +1,71 @@
<?php
return [
[
'FF',
'11111111',
],
[
'1FF',
'111111111',
],
[
'200',
'#NUM!',
],
// 2's Complement
[
'FFFFFFFE00',
'1000000000',
],
// 2's Complement
[
'FFFFFFFDFF',
'#NUM!',
],
[
'01AB',
'110101011',
],
[
'ABCD',
'#NUM!',
],
[
'F6',
'11110110',
],
[
'F',
8,
'00001111',
],
[
'B7',
'10110111',
],
[
'12345',
'#NUM!',
],
[
'123456789',
'#NUM!',
],
[
'123.45',
'#NUM!',
],
[
'0',
'0',
],
[
'G3579A',
'#NUM!',
],
[
true,
'#VALUE!',
],
];

View File

@ -0,0 +1,67 @@
<?php
return [
[
'01AB',
'427',
],
[
'ABCD',
'43981',
],
[
'F6',
'246',
],
[
'12345',
'74565',
],
[
'123456789',
'4886718345',
],
[
'123.45',
'#NUM!',
],
[
'0',
'0',
],
[
'G3579A',
'#NUM!',
],
[
true,
'#VALUE!',
],
[
'-107',
'#NUM!',
],
[
'A5',
'165',
],
[
'3DA408B9',
'1034160313',
],
// 2's Complement
[
'FFFFFFFF5B',
'-165',
],
// 2's Complement
[
'FFFFFFFFFF',
'-1',
],
// Too large
[
'1FFFFFFFFFF',
'#NUM!',
],
];

View File

@ -0,0 +1,58 @@
<?php
return [
[
'01AB',
'653',
],
[
'ABCD',
'125715',
],
[
'F6',
'366',
],
[
'3B4E',
'35516',
],
[
'F',
3,
'017',
],
[
'12345',
'221505',
],
[
'123456789',
'#NUM!',
],
[
'123.45',
'#NUM!',
],
[
'0',
'0',
],
[
'G3579A',
'#NUM!',
],
[
true,
'#VALUE!',
],
[
'-107',
'#NUM!',
],
// 2's Complement
[
'FFFFFFFF00',
'7777777400',
],
];

View File

@ -0,0 +1,112 @@
<?php
return [
[
'12.34+5.67j',
13.58029822942,
],
[
'1.234E-5+6.78E9i',
6780000000.0,
],
[
'3.5+2.5i',
4.3011626335209998,
],
[
'3.5+i',
3.6400549446400001,
],
[
'3.5',
3.5,
],
[
'3.5-i',
3.6400549446400001,
],
[
'3.5-2.5i',
4.3011626335209998,
],
[
'1+2.5i',
2.6925824035670001,
],
[
'1+i',
1.4142135623730001,
],
[
'1',
1,
],
[
'1-i',
1.4142135623730001,
],
[
'1-2.5i',
2.6925824035670001,
],
[
'2.5i',
2.5,
],
[
'i',
1,
],
[
'0',
0,
],
[
'-i',
1,
],
[
'-2.5i',
2.5,
],
[
'-1+2.5i',
2.6925824035670001,
],
[
'-1+i',
1.4142135623730001,
],
[
'-1',
1,
],
[
'-1-i',
1.4142135623730001,
],
[
'-1-2.5i',
2.6925824035670001,
],
[
'-3.5+2.5i',
4.3011626335209998,
],
[
'-3.5+i',
3.6400549446400001,
],
[
'-3.5',
3.5,
],
[
'-3.5-i',
3.6400549446400001,
],
[
'-3.5-2.5i',
4.3011626335209998,
],
];

View File

@ -0,0 +1,124 @@
<?php
return [
[
'12.34+5.67j',
5.6699999999999999,
],
[
'1.234E-5+6.78E9i',
6780000000.0,
],
[
'3.5+2.5i',
2.5,
],
[
'3.5+i',
1,
],
[
'3.5',
0,
],
[
'3.5-i',
-1,
],
[
'3.5-2.5i',
-2.5,
],
[
'1+2.5i',
2.5,
],
[
'1+i',
1,
],
[
'1',
0,
],
[
1,
0,
],
[
'1-i',
-1,
],
[
'1-2.5i',
-2.5,
],
[
'2.5i',
2.5,
],
[
'i',
1,
],
[
'0',
0,
],
[
0,
0,
],
[
0.0,
0,
],
[
'-i',
-1,
],
[
'-2.5i',
-2.5,
],
[
'-1+2.5i',
2.5,
],
[
'-1+i',
1,
],
[
'-1',
0,
],
[
'-1-i',
-1,
],
[
'-1-2.5i',
-2.5,
],
[
'-3.5+2.5i',
2.5,
],
[
'-3.5+i',
1,
],
[
'-3.5',
0,
],
[
'-3.5-i',
-1,
],
[
'-3.5-2.5i',
-2.5,
],
];

View File

@ -0,0 +1,108 @@
<?php
return [
[
'12.34+5.67j',
0.43071059555000002,
],
[
'3.5+2.5i',
0.620249485983,
],
[
'3.5+i',
0.27829965900499998,
],
[
'3.5',
0,
],
[
'3.5-i',
-0.27829965900499998,
],
[
'3.5-2.5i',
-0.620249485983,
],
[
'1+2.5i',
1.1902899496829999,
],
[
'1+i',
0.78539816339699997,
],
[
'1',
0,
],
[
'1-i',
-0.78539816339699997,
],
[
'1-2.5i',
-1.1902899496829999,
],
[
'2.5i',
1.570796326795,
],
[
'i',
1.570796326795,
],
[
'0',
'#DIV/0!',
],
[
'-i',
-1.570796326795,
],
[
'-2.5i',
-1.570796326795,
],
[
'-1+2.5i',
1.9513027039069999,
],
[
'-1+i',
2.3561944901919998,
],
[
'-1',
3.1415926535900001,
],
[
'-1-i',
-2.3561944901919998,
],
[
'-1-2.5i',
-1.9513027039069999,
],
[
'-3.5+2.5i',
2.5213431676070002,
],
[
'-3.5+i',
2.8632929945850001,
],
[
'-3.5',
3.1415926535900001,
],
[
'-3.5-i',
-2.8632929945850001,
],
[
'-3.5-2.5i',
-2.5213431676070002,
],
];

View File

@ -0,0 +1,108 @@
<?php
return [
[
'12.34+5.67j',
'12.34-5.67j',
],
[
'3.5+2.5i',
'3.5-2.5i',
],
[
'3.5+i',
'3.5-i',
],
[
'3.5',
'3.5',
],
[
'3.5-i',
'3.5+i',
],
[
'3.5-2.5i',
'3.5+2.5i',
],
[
'1+2.5i',
'1-2.5i',
],
[
'1+i',
'1-i',
],
[
'1',
'1',
],
[
'1-i',
'1+i',
],
[
'1-2.5i',
'1+2.5i',
],
[
'2.5i',
'-2.5i',
],
[
'i',
'-i',
],
[
'0',
'0',
],
[
'-i',
'i',
],
[
'-2.5i',
'2.5i',
],
[
'-1+2.5i',
'-1-2.5i',
],
[
'-1+i',
'-1-i',
],
[
'-1',
'-1',
],
[
'-1-i',
'-1+i',
],
[
'-1-2.5i',
'-1+2.5i',
],
[
'-3.5+2.5i',
'-3.5-2.5i',
],
[
'-3.5+i',
'-3.5-i',
],
[
'-3.5',
'-3.5',
],
[
'-3.5-i',
'-3.5+i',
],
[
'-3.5-2.5i',
'-3.5+2.5i',
],
];

View File

@ -0,0 +1,112 @@
<?php
return [
[
'12.34+5.67j',
'141.319179436356+32.547610312508j',
],
[
'3.5+2.5i',
'-5.74262349163406+2.12231025604134i',
],
[
'3.5+i',
'-1.44502817950166+0.412240867891067i',
],
[
'3.5',
'-0.936456687290796',
],
[
'3.5-i',
'-1.44502817950166-0.412240867891067i',
],
[
'3.5-2.5i',
'-5.74262349163406-2.12231025604134i',
],
[
'1+2.5i',
'3.31329014611322-5.0910715229497i',
],
[
'1+i',
'0.833730025131149-0.988897705762865i',
],
[
'1',
'0.54030230586814',
],
[
'1-i',
'0.833730025131149+0.988897705762865i',
],
[
'1-2.5i',
'3.31329014611322+5.0910715229497i',
],
[
'2.5i',
'6.13228947966369',
],
[
'i',
'1.54308063481524',
],
[
'0',
'1',
],
[
'-i',
'1.54308063481524',
],
[
'-2.5i',
'6.13228947966369',
],
[
'-1+2.5i',
'3.31329014611322+5.0910715229497i',
],
[
'-1+i',
'0.833730025131149+0.988897705762865i',
],
[
'-1',
'0.54030230586814',
],
[
'-1-i',
'0.833730025131149-0.988897705762865i',
],
[
'-1-2.5i',
'3.31329014611322-5.0910715229497i',
],
[
'-3.5+2.5i',
'-5.74262349163406-2.12231025604134i',
],
[
'-3.5+i',
'-1.44502817950166-0.412240867891067i',
],
[
'-3.5',
'-0.936456687290796',
],
[
'-3.5-i',
'-1.44502817950166+0.412240867891067i',
],
[
'-3.5-2.5i',
'-5.74262349163406+2.12231025604134i',
],
[
'3',
'-0.989992496600445',
],
];

View File

@ -0,0 +1,104 @@
<?php
return [
[
'12.34+5.67j',
'123.45+67.89i',
'#NUM!',
],
[
'12.34+5.67j',
'123.45+67.89j',
'0.0961415519586104-0.00694248653276682j',
],
[
'-12.34+5.67i',
'-123.45+67.89i',
'0.0961415519586104+0.00694248653276682i',
],
[
'-12.34-5.67i',
'-123.45+67.89i',
'0.0573549954111941+0.0774712890924744i',
],
[
'-12.34+5.67i',
'-123.45-67.89i',
'0.0573549954111941-0.0774712890924744i',
],
[
'-12.34-5.67i',
'-123.45-67.89i',
'0.0961415519586104-0.00694248653276682i',
],
[
'12.34+5.67i',
'-123.45+67.89i',
'-0.0573549954111941-0.0774712890924744i',
],
[
'12.34-5.67i',
'-123.45+67.89i',
'-0.0961415519586104-0.00694248653276682i',
],
[
'12.34+5.67i',
'-123.45-67.89i',
'-0.0961415519586104+0.00694248653276682i',
],
[
'12.34-5.67i',
'-123.45-67.89i',
'-0.0573549954111941+0.0774712890924744i',
],
[
'-12.34+5.67i',
'123.45+67.89i',
'-0.0573549954111941+0.0774712890924744i',
],
[
'-12.34-5.67i',
'123.45+67.89i',
'-0.0961415519586104+0.00694248653276682i',
],
[
'-12.34+5.67i',
'123.45-67.89i',
'-0.0961415519586104-0.00694248653276682i',
],
[
'-12.34-5.67i',
'123.45-67.89i',
'-0.0573549954111941-0.0774712890924744i',
],
[
'-12.34-5.67i',
'123.45-67.89',
'#NUM!',
],
[
'-12.34-5.67j',
'123.45-67.89',
'#NUM!',
],
[
'-12.34-5.67',
'123.45-67.89j',
'#NUM!',
],
[
'-12.34-5.67i',
'-12.34-5.67i',
'1',
],
[
'-12.34',
'123.45-67.89i',
'-0.0767482736849023-0.0422068878126206i',
],
[
'-12.34-5.67i',
'-12.34',
'1+0.459481361426256i',
],
];

View File

@ -0,0 +1,112 @@
<?php
return [
[
'12.34+5.67j',
'187004.11273906-131589.323796073j',
],
[
'-12.34E-5+6.78E9i',
'0.519482808316086+0.85433649244115i',
],
[
'3.5+2.5i',
'-26.5302329126575+19.8186755366902i',
],
[
'3.5+i',
'17.8923550531471+27.8656919720394i',
],
[
'3.5',
'33.1154519586923',
],
[
'3.5-i',
'17.8923550531471-27.8656919720394i',
],
[
'3.5-2.5i',
'-26.5302329126575-19.8186755366902i',
],
[
'1+2.5i',
'-2.17773413212721+1.62681595415671i',
],
[
'1+i',
'1.46869393991589+2.28735528717884i',
],
[
'1',
'2.71828182845905',
],
[
'1-i',
'1.46869393991589-2.28735528717884i',
],
[
'1-2.5i',
'-2.17773413212721-1.62681595415671i',
],
[
'2.5i',
'-0.801143615546934+0.598472144103957i',
],
[
'i',
'0.54030230586814+0.841470984807897i',
],
[
'0',
'1',
],
[
'-i',
'0.54030230586814-0.841470984807897i',
],
[
'-2.5i',
'-0.801143615546934-0.598472144103957i',
],
[
'-1+2.5i',
'-0.294724265585475+0.220165597929638i',
],
[
'-1+i',
'0.198766110346413+0.309559875653112i',
],
[
'-1',
'0.367879441171442',
],
[
'-1-i',
'0.198766110346413-0.309559875653112i',
],
[
'-1-2.5i',
'-0.294724265585475-0.220165597929638i',
],
[
'-3.5+2.5i',
'-0.0241924409350133+0.0180722928030842i',
],
[
'-3.5+i',
'0.016315715894263+0.025410221967i',
],
[
'-3.5',
'0.0301973834223185',
],
[
'-3.5-i',
'0.016315715894263-0.025410221967i',
],
[
'-3.5-2.5i',
'-0.0241924409350133-0.0180722928030842i',
],
];

View File

@ -0,0 +1,112 @@
<?php
return [
[
'12.34+5.67j',
'2.60862008281875+0.430710595550204j',
],
[
'-1.234E-5+6.78E9i',
'22.6372429388987+1.5707963267949i',
],
[
'3.5+2.5i',
'1.45888536604214+0.620249485982821i',
],
[
'3.5+i',
'1.29199877621612+0.278299659005111i',
],
[
'3.5',
'1.25276296849537',
],
[
'3.5-i',
'1.29199877621612-0.278299659005111i',
],
[
'3.5-2.5i',
'1.45888536604214-0.620249485982821i',
],
[
'1+2.5i',
'0.990500734433292+1.19028994968253i',
],
[
'1+i',
'0.346573590279973+0.785398163397448i',
],
[
'1',
'0',
],
[
'1-i',
'0.346573590279973-0.785398163397448i',
],
[
'1-2.5i',
'0.990500734433292-1.19028994968253i',
],
[
'2.5i',
'0.916290731874155+1.5707963267949i',
],
[
'i',
'1.5707963267949i',
],
[
'0',
'#NUM!',
],
[
'-i',
'-1.5707963267949i',
],
[
'-2.5i',
'0.916290731874155-1.5707963267949i',
],
[
'-1+2.5i',
'0.990500734433292+1.95130270390726i',
],
[
'-1+i',
'0.346573590279973+2.35619449019234i',
],
[
'-1',
'3.14159265358979i',
],
[
'-1-i',
'0.346573590279973-2.35619449019234i',
],
[
'-1-2.5i',
'0.990500734433292-1.95130270390726i',
],
[
'-3.5+2.5i',
'1.45888536604214+2.52134316760697i',
],
[
'-3.5+i',
'1.29199877621612+2.86329299458468i',
],
[
'-3.5',
'1.25276296849537+3.14159265358979i',
],
[
'-3.5-i',
'1.29199877621612-2.86329299458468i',
],
[
'-3.5-2.5i',
'1.45888536604214-2.52134316760697i',
],
];

View File

@ -0,0 +1,112 @@
<?php
return [
[
'12.34+5.67j',
'1.13290930735019+0.187055234944717j',
],
[
'-12.34E-5+6.78E9i',
'9.83122969386706+0.682188176920927i',
],
[
'3.5+2.5i',
'0.633585864201507+0.269370929165668i',
],
[
'3.5+i',
'0.561107939136413+0.120864006221476i',
],
[
'3.5',
'0.544068044350276',
],
[
'3.5-i',
'0.561107939136413-0.120864006221476i',
],
[
'3.5-2.5i',
'0.633585864201507-0.269370929165668i',
],
[
'1+2.5i',
'0.430169003285497+0.516936357012023i',
],
[
'1+i',
'0.150514997831991+0.34109408846046i',
],
[
'1',
'0',
],
[
'1-i',
'0.150514997831991-0.34109408846046i',
],
[
'1-2.5i',
'0.430169003285497-0.516936357012023i',
],
[
'2.5i',
'0.397940008672038+0.68218817692092i',
],
[
'i',
'0.68218817692092i',
],
[
'0',
'#NUM!',
],
[
'-i',
'-0.68218817692092i',
],
[
'-2.5i',
'0.397940008672038-0.68218817692092i',
],
[
'-1+2.5i',
'0.430169003285497+0.847439996829817i',
],
[
'-1+i',
'0.150514997831991+1.02328226538138i',
],
[
'-1',
'1.36437635384184i',
],
[
'-1-i',
'0.150514997831991-1.02328226538138i',
],
[
'-1-2.5i',
'0.430169003285497-0.847439996829817i',
],
[
'-3.5+2.5i',
'0.633585864201507+1.09500542467617i',
],
[
'-3.5+i',
'0.561107939136413+1.24351234762036i',
],
[
'-3.5',
'0.544068044350276+1.36437635384184i',
],
[
'-3.5-i',
'0.561107939136413-1.24351234762036i',
],
[
'-3.5-2.5i',
'0.633585864201507-1.09500542467617i',
],
];

View File

@ -0,0 +1,112 @@
<?php
return [
[
'12.34+5.67j',
'3.76344325733562+0.621384040306436j',
],
[
'-12.34E-5+6.78E9i',
'32.6586381298614+2.26618007108803i',
],
[
'3.5+2.5i',
'2.10472668297646+0.894830857610216i',
],
[
'3.5+i',
'1.86396022742506+0.401501537958665i',
],
[
'3.5',
'1.80735492219671',
],
[
'3.5-i',
'1.86396022742506-0.401501537958665i',
],
[
'3.5-2.5i',
'2.10472668297646-0.894830857610216i',
],
[
'1+2.5i',
'1.42899049767377+1.71722540775913i',
],
[
'1+i',
'0.500000000038482+1.13309003554401i',
],
[
'1',
'0',
],
[
'1-i',
'0.500000000038482-1.13309003554401i',
],
[
'1-2.5i',
'1.42899049767377-1.71722540775913i',
],
[
'2.5i',
'1.3219280949891+2.26618007108801i',
],
[
'i',
'2.26618007108801i',
],
[
'0',
'#NUM!',
],
[
'-i',
'-2.26618007108801i',
],
[
'-2.5i',
'1.3219280949891-2.26618007108801i',
],
[
'-1+2.5i',
'1.42899049767377+2.81513473441689i',
],
[
'-1+i',
'0.500000000038482+3.39927010663201i',
],
[
'-1',
'4.53236014217602i',
],
[
'-1-i',
'0.500000000038482-3.39927010663201i',
],
[
'-1-2.5i',
'1.42899049767377-2.81513473441689i',
],
[
'-3.5+2.5i',
'2.10472668297646+3.63752928456581i',
],
[
'-3.5+i',
'1.86396022742506+4.13085860421736i',
],
[
'-3.5',
'1.80735492219671+4.53236014217602i',
],
[
'-3.5-i',
'1.86396022742506-4.13085860421736i',
],
[
'-3.5-2.5i',
'2.10472668297646-3.63752928456581i',
],
];

View File

@ -0,0 +1,94 @@
<?php
return [
[
'12.34+5.67j',
2,
'120.1267+139.9356j',
],
[
'12.34+5.67j',
3,
'688.928626+2407.923693j',
],
[
'12.34+5.67j',
-1,
'6.69108496973016E-002-3.07442883131037E-002j',
],
[
'12.34+5.67j',
-2,
'3.53185054333564E-003-4.11425290873718E-003j',
],
[
'12.34+5.67j',
0.5,
'3.60002071031685+0.787495469644252j',
],
[
'12.34+5.67j',
-0.25,
'0.517904976730581-5.59833234375533E-002j',
],
[
'12.34+5.67j',
0,
'1',
],
[
'-i',
2,
'-1-1.34451369308841E-014i',
],
[
'1-i',
2,
'1.22460635382238E-016-2i',
],
[
'2.5i',
2,
'-6.25+8.40321058180257E-014i',
],
[
'2.5i',
'2.5',
'-6.98771242968685-6.98771242968684i',
],
[
'2.5i',
'2.5i',
'#VALUE!',
],
[
'2.5',
'2.5',
9.8821176880261898,
],
[
'2',
'2',
4,
],
[
'-12.34-5.67i',
'-12.34',
'-4.69972844488573E-15+9.35464904349343E-15i',
],
[
'12.34-5.67i',
'-12.34',
'5.93343000067521E-15-8.62503997728057E-15i',
],
[
'-12.34-5.67i',
'12.34',
'-42881944468901.9-85355046682682.3i',
],
[
'12.34-5.67i',
'12.34',
'54138663282971.3+78697841733874.3i',
],
];

View File

@ -0,0 +1,80 @@
<?php
return [
[
'12.34+5.67j',
'123.45+67.89i',
'#NUM!',
],
[
'12.34+5.67j',
'12.34+5.67j',
],
[
'12.34+5.67i',
'123.45+67.89i',
'5.67',
'6454.936089+8718.895647i',
],
[
'12.34+5.67j',
'123.45+67.89j',
'5.67',
'6454.936089+8718.895647j',
],
[
'12.34+5.67j',
'123.45+67.89j',
'1138.4367+1537.7241j',
],
[
'12.34-5.67i',
'123.45+67.89i',
'1908.3093+137.8011i',
],
[
'12.34+5.67i',
'123.45-67.89i',
'1908.3093-137.8011i',
],
[
'12.34-5.67i',
'123.45-67.89i',
'1138.4367-1537.7241i',
],
[
'-12.34+5.67i',
'123.45+67.89i',
'-1908.3093-137.8011i',
],
[
'-12.34-5.67i',
'123.45+67.89i',
'-1138.4367-1537.7241i',
],
[
'12.34+5.67i',
'-123.45+67.89i',
'-1908.3093+137.8011i',
],
[
'-12.34+5.67i',
'-123.45+67.89i',
'1138.4367-1537.7241i',
],
[
'-12.34-5.67i',
'-123.45-67.89i',
'1138.4367+1537.7241i',
],
[
'-12.34',
'123.45-67.89i',
'-1523.373+837.7626i',
],
[
'-12.34-5.67i',
'-12.34',
'152.2756+69.9678i',
],
];

View File

@ -0,0 +1,124 @@
<?php
return [
[
'12.34+5.67j"',
12.34,
],
[
'-1.234E-5+6.78E9i',
-1.234E-5,
],
[
'3.5+2.5i',
3.5,
],
[
'3.5+i',
3.5,
],
[
'3.5',
3.5,
],
[
3.5,
3.5,
],
[
'3.5-i',
3.5,
],
[
'3.5-2.5i',
3.5,
],
[
'1+2.5i',
1,
],
[
'1+i',
1,
],
[
'1',
1,
],
[
1,
1,
],
[
'1-i',
1,
],
[
'1-2.5i',
1,
],
[
'2.5i',
0,
],
[
'i',
0,
],
[
'0',
0,
],
[
0,
0,
],
[
'-i',
0,
],
[
'-2.5i',
0,
],
[
'-1+2.5i',
-1,
],
[
'-1+i',
-1,
],
[
'-1',
-1,
],
[
'-1-i',
-1,
],
[
'-1-2.5i',
-1,
],
[
'-3.5+2.5i',
-3.5,
],
[
'-3.5+i',
-3.5,
],
[
'-3.5',
-3.5,
],
[
'-3.5-i',
-3.5,
],
[
'-3.5-2.5i',
-3.5,
],
];

View File

@ -0,0 +1,112 @@
<?php
return [
[
'12.34+5.67j',
'-32.5483841590412+141.315819535092j',
],
[
'3.5+2.5i',
'-2.15110429680353-5.66575444574645i',
],
[
'3.5+i',
'-0.541286805665839-1.10052501669986i',
],
[
'3.5',
'-0.35078322768962',
],
[
'3.5-i',
'-0.541286805665839+1.10052501669986i',
],
[
'3.5-2.5i',
'-2.15110429680353+5.66575444574645i',
],
[
'1+2.5i',
'5.16014366757971+3.26893943207955i',
],
[
'1+i',
'1.29845758141598+0.634963914784736i',
],
[
'1',
'0.841470984807897',
],
[
'1-i',
'1.29845758141598-0.634963914784736i',
],
[
'1-2.5i',
'5.16014366757971-3.26893943207955i',
],
[
'2.5i',
'6.05020448103979i',
],
[
'i',
'1.1752011936438i',
],
[
'0',
'0',
],
[
'-i',
'-1.1752011936438i',
],
[
'-2.5i',
'-6.05020448103979i',
],
[
'-1+2.5i',
'-5.16014366757971+3.26893943207955i',
],
[
'-1+i',
'-1.29845758141598+0.634963914784736i',
],
[
'-1',
'-0.841470984807897',
],
[
'-1-i',
'-1.29845758141598-0.634963914784736i',
],
[
'-1-2.5i',
'-5.16014366757971-3.26893943207955i',
],
[
'-3.5+2.5i',
'2.15110429680353-5.66575444574645i',
],
[
'-3.5+i',
'0.541286805665839-1.10052501669986i',
],
[
'-3.5',
'0.35078322768962',
],
[
'-3.5-i',
'0.541286805665839+1.10052501669986i',
],
[
'-3.5-2.5i',
'2.15110429680353+5.66575444574645i',
],
[
'3',
'0.141120008059867',
],
];

View File

@ -0,0 +1,116 @@
<?php
return [
[
'12.34+5.67j',
'3.60002071031685+0.787495469644252j',
],
[
'-1.234E-5+6.78E9i',
'58223.7065120385+58223.7065120386i',
],
[
'3.5+2.5i',
'1.9749889409211+0.632914936433528i',
],
[
'3.5+i',
'1.88945163270197+0.264627043818521i',
],
[
'3.5',
'1.87082869338697',
],
[
'3.5-i',
'1.88945163270197-0.264627043818521i',
],
[
'3.5-2.5i',
'1.9749889409211-0.632914936433528i',
],
[
'1+2.5i',
'1.35878298553655+0.919940868634298i',
],
[
'1+i',
'1.09868411346781+0.455089860562227i',
],
[
'1',
'1',
],
[
'1-i',
'1.09868411346781-0.455089860562227i',
],
[
'1-2.5i',
'1.35878298553655-0.919940868634298i',
],
[
'2.5i',
'1.11803398874989+1.11803398874989i',
],
[
'i',
'0.707106781186548+0.707106781186547i',
],
[
'0',
'0',
],
[
'-i',
'0.707106781186548-0.707106781186547i',
],
[
'-2.5i',
'1.11803398874989-1.11803398874989i',
],
[
'-1+2.5i',
'0.919940868634298+1.35878298553655i',
],
[
'-1+i',
'0.455089860562227+1.09868411346781i',
],
[
'-1',
'6.12303176911189E-017+i',
],
[
'-1-i',
'0.455089860562227-1.09868411346781i',
],
[
'-1-2.5i',
'0.919940868634298-1.35878298553655i',
],
[
'-3.5+2.5i',
'0.632914936433528+1.9749889409211i',
],
[
'-3.5+i',
'0.264627043818521+1.88945163270197i',
],
[
'-3.5',
'1.14551435241745E-016+1.87082869338697i',
],
[
'-3.5-i',
'0.264627043818521-1.88945163270197i',
],
[
'-3.5-2.5i',
'0.632914936433528-1.9749889409211i',
],
[
'9',
'3',
],
];

View File

@ -0,0 +1,55 @@
<?php
return [
[
'12.34+5.67j',
'123.45+67.89i',
'#NUM!',
],
[
'123.45+67.89j',
'12.34+5.67j',
'111.11+62.22j',
],
[
'12.34+5.67j',
'123.45+67.89j',
'-111.11-62.22j',
],
[
'12.34+5.67i',
'123.45+67.89i',
'123.45+67.89i',
'-111.11-62.22i',
],
[
'-12.34-5.67i',
'123.45-67.89i',
'-135.79+62.22i',
],
[
'12.34-5.67i',
'-123.45-67.89i',
'135.79+62.22i',
],
[
'-12.34-5.67i',
'-123.45-67.89i',
'111.11+62.22i',
],
[
'-12.34-5.67i',
'-123.45-67.89',
'#NUM!',
],
[
'-12.34-5.67j',
'-123.45-67.89',
'#NUM!',
],
[
'-12.34-5.67',
'-123.45-67.89j',
'#NUM!',
],
];

View File

@ -0,0 +1,56 @@
<?php
return [
[
'12.34+5.67j',
'123.45+67.89i',
'#NUM!',
],
[
'12.34+5.67j',
'123.45+67.89j',
'135.79+73.56j',
],
[
'12.34-5.67i',
'123.45+67.89i',
'135.79+62.22i',
],
[
'12.34+5.67i',
'123.45-67.89i',
'135.79-62.22i',
],
[
'12.34-5.67i',
'123.45-67.89i',
'135.79-73.56i',
],
[
'12.34+5.67i',
'123.45+67.89i',
'123.45+67.89i',
'259.24+141.45i',
],
[
'12.34+5.67i',
'123.45+67.89i',
'123.45+67.89j',
'#NUM!',
],
[
'-12.34-5.67i',
'123.45-67.89i',
'111.11-73.56i',
],
[
'12.34-5.67i',
'-123.45-67.89i',
'-111.11-73.56i',
],
[
'-12.34-5.67i',
'-123.45-67.89i',
'-135.79-73.56i',
],
];

View File

@ -0,0 +1,61 @@
<?php
return [
[
'1357',
'#NUM!',
],
[
'246',
'10100110',
],
[
'3',
3,
'011',
],
[
'12345',
'#NUM!',
],
[
'123.45',
'#NUM!',
],
[
'0',
'0',
],
[
true,
'#VALUE!',
],
[
'3579',
'#NUM!',
],
// 2's Complement
[
'7777777000',
'1000000000',
],
// 2's Complement
[
'7777777777',
'1111111111',
],
// Too small
[
'17777777777',
'#NUM!',
],
[
'777',
'111111111',
],
// Too large
[
'1777',
'#NUM!',
],
];

View File

@ -0,0 +1,41 @@
<?php
return [
[
'1357',
'751',
],
[
'246',
'166',
],
[
'12345',
'5349',
],
[
'123.45',
'#NUM!',
],
[
'0',
'0',
],
[
true,
'#VALUE!',
],
[
'3579',
'#NUM!',
],
[
'54',
'44',
],
// 2's Complement
[
'7777777533',
'-165',
],
];

View File

@ -0,0 +1,42 @@
<?php
return [
[
'1357',
'2EF',
],
[
'246',
'A6',
],
[
'12345',
'14E5',
],
[
'100',
4,
'0040',
],
[
'123.45',
'#NUM!',
],
[
'0',
'0',
],
[
true,
'#VALUE!',
],
[
'3579',
'#NUM!',
],
// 2's Complement
[
'7777777533',
'FFFFFFFF5B',
],
];

View File

@ -0,0 +1,75 @@
<?php
// Issue date, 1st Interest, Settlement, Rate, Par, Freq, Basis, Result
return [
[
'2008-03-01',
'2008-08-31',
'2008-05-01',
0.10000000000000001,
1000,
2,
0,
16.666666666666998,
],
[
'2008-03-05',
'2008-08-31',
'2008-05-01',
0.10000000000000001,
1000,
2,
0,
15.555555555555999,
],
[
'2010-01-01',
'2010-06-30',
'2010-04-01',
0.080000000000000002,
10000,
4,
200,
],
[
'2008-03-05',
'2008-08-31',
'2008-05-01',
-0.10000000000000001,
1000,
2,
0,
'#NUM!',
],
[
'Invalid Date',
'2008-08-31',
'2008-05-01',
0.10000000000000001,
1000,
2,
0,
'#VALUE!',
],
[
'2008-03-01',
'2008-08-31',
'2008-05-01',
'ABC',
1000,
2,
0,
'#VALUE!',
],
[
'2008-03-01',
'2008-08-31',
'2008-05-01',
0.10000000000000001,
1000,
2,
'ABC',
'#VALUE!',
],
];

View File

@ -0,0 +1,45 @@
<?php
// Issue date, Settlement, Rate, Par, Basis, Result
return [
[
'2008-04-01',
'2008-06-15',
0.10000000000000001,
1000,
3,
20.547945205478999,
],
[
'2010-01-01',
'2010-12-31',
0.080000000000000002,
10000,
800,
],
[
'2008-03-05',
'2008-08-31',
-0.10000000000000001,
1000,
2,
'#NUM!',
],
[
'Invalid Date',
'2008-08-31',
0.10000000000000001,
1000,
2,
'#VALUE!',
],
[
'2008-03-01',
'2008-08-31',
'ABC',
1000,
2,
'#VALUE!',
],
];

View File

@ -0,0 +1,26 @@
<?php
// Cost, Date purchased, End of the 1st period, Salvage, Period, Depreciation, Basis, Result
return [
[
2400,
'2008-08-19',
'2008-12-31',
300,
1,
0.14999999999999999,
1,
776,
],
[
150,
'2011-01-01',
'2011-09-30',
20,
1,
0.20000000000000001,
4,
42,
],
];

View File

@ -0,0 +1,26 @@
<?php
// Cost, Date purchased, End of the 1st period, Salvage, Period, Depreciation, Basis, Result
return [
[
2400,
'2008-08-19',
'2008-12-31',
300,
1,
0.14999999999999999,
1,
360,
],
[
150,
'2011-01-01',
'2011-09-30',
20,
1,
0.20000000000000001,
4,
30,
],
];

View File

@ -0,0 +1,40 @@
<?php
// Settlement, Maturity, Frequency, Basis, Result
return [
[
'25-Jan-2007',
'15-Nov-2008',
2,
1,
71,
],
[
'2011-01-01',
'2012-10-25',
4,
66,
],
[
'Invalid Date',
'15-Nov-2008',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'Invalid Date',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'15-Nov-2008',
3,
1,
'#NUM!',
],
];

View File

@ -0,0 +1,40 @@
<?php
// Settlement, Maturity, Frequency, Basis, Result
return [
[
'25-Jan-2007',
'15-Nov-2008',
2,
1,
181,
],
[
'2011-01-01',
'2012-10-25',
4,
90,
],
[
'Invalid Date',
'15-Nov-2008',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'Invalid Date',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'15-Nov-2008',
3,
1,
'#NUM!',
],
];

View File

@ -0,0 +1,40 @@
<?php
// Settlement, Maturity, Frequency, Basis, Result
return [
[
'25-Jan-2007',
'15-Nov-2008',
2,
1,
110,
],
[
'2011-01-01',
'2012-10-25',
4,
24,
],
[
'Invalid Date',
'15-Nov-2008',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'Invalid Date',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'15-Nov-2008',
3,
1,
'#NUM!',
],
];

View File

@ -0,0 +1,40 @@
<?php
// Settlement, Maturity, Frequency, Basis, Result
return [
[
'25-Jan-2007',
'15-Nov-2008',
2,
1,
39217,
],
[
'2011-01-01',
'2012-10-25',
4,
40568,
],
[
'Invalid Date',
'15-Nov-2008',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'Invalid Date',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'15-Nov-2008',
3,
1,
'#NUM!',
],
];

View File

@ -0,0 +1,48 @@
<?php
// Settlement, Maturity, Frequency, Basis, Result
return [
[
'25-Jan-2007',
'15-Nov-2008',
2,
1,
4,
],
[
'2011-01-01',
'2012-10-25',
4,
0,
8,
],
[
'Invalid Date',
'15-Nov-2008',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'Invalid Date',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'15-Nov-2008',
3,
1,
'#NUM!',
],
[
'01-Jan-2008',
'31-Dec-2012',
1,
1,
5,
],
];

View File

@ -0,0 +1,40 @@
<?php
// Settlement, Maturity, Frequency, Basis, Result
return [
[
'25-Jan-2007',
'15-Nov-2008',
2,
1,
39036,
],
[
'2011-01-01',
'2012-10-25',
4,
40476,
],
[
'Invalid Date',
'15-Nov-2008',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'Invalid Date',
2,
1,
'#VALUE!',
],
[
'25-Jan-2007',
'15-Nov-2008',
3,
1,
'#NUM!',
],
];

View File

@ -0,0 +1,87 @@
<?php
// rate, nper, pv, start_period, end_period, type, result
return [
[
0.0074999999999999997,
360,
125000,
13,
24,
0,
-11135.232130750999,
],
[
0.0074999999999999997,
360,
125000,
1,
1,
0,
-937.5,
],
[
0.0041666666669999998,
60,
50000,
1,
12,
0,
-2294.9775375120998,
],
[
0.0041666666669999998,
60,
50000,
13,
24,
0,
-1833.1000667254,
],
[
0.0041666666669999998,
60,
50000,
25,
36,
0,
-1347.5920679425001,
],
[
0.0041666666669999998,
60,
50000,
37,
48,
0,
-837.24455850309005,
],
[
0.0041666666669999998,
60,
50000,
49,
60,
0,
-300.78670189938998,
],
[
0.0074999999999999997,
360,
125000,
24,
13,
0,
'#VALUE!',
],
[
0.0074999999999999997,
360,
125000,
24,
13,
2,
'#NUM!',
],
];

View File

@ -0,0 +1,87 @@
<?php
// rate, nper, pv, start_period, end_period, type, result
return [
[
0.0074999999999999997,
360,
125000,
13,
24,
0,
-934.10712342088004,
],
[
0.0074999999999999997,
360,
125000,
1,
1,
0,
-68.278271180977001,
],
[
0.0041666666669999998,
60,
50000,
1,
12,
0,
-9027.7626490046005,
],
[
0.0041666666669999998,
60,
50000,
13,
24,
0,
-9489.6401197913001,
],
[
0.0041666666669999998,
60,
50000,
25,
36,
0,
-9975.1481185740995,
],
[
0.0041666666669999998,
60,
50000,
37,
48,
0,
-10485.495628014,
],
[
0.0041666666669999998,
60,
50000,
49,
60,
0,
-11021.953484617001,
],
[
0.0074999999999999997,
360,
125000,
24,
13,
0,
'#VALUE!',
],
[
0.0074999999999999997,
360,
125000,
24,
13,
2,
'#NUM!',
],
];

View File

@ -0,0 +1,134 @@
<?php
// cost, salvage, life, period, month, result
return [
[
1000000,
100000,
6,
1,
7,
186083.33333333,
],
[
1000000,
100000,
6,
2,
7,
259639.41666667,
],
[
1000000,
100000,
6,
3,
7,
176814.44274999999,
],
[
1000000,
100000,
6,
4,
7,
120410.63551275,
],
[
1000000,
100000,
6,
5,
7,
81999.642784183001,
],
[
1000000,
100000,
6,
6,
7,
55841.756736028001,
],
[
1000000,
100000,
6,
7,
7,
15845.098473848,
],
[
10000,
1000,
5,
1,
6,
1845.0,
],
[
10000,
1000,
5,
2,
6,
3009.1950000000002,
],
[
10000,
1000,
5,
3,
6,
1898.8020449999999,
],
[
10000,
1000,
5,
4,
6,
1198.1440903949999,
],
[
10000,
1000,
5,
5,
6,
756.02892103925001,
],
[
10000,
1000,
5,
6,
6,
238.52712458788,
],
[
0,
0,
5,
6,
6,
0.0,
],
[
-1000,
100,
5,
6,
6,
'#NUM!',
],
[
'ABC',
100,
5,
6,
6,
'#VALUE!',
],
];

View File

@ -0,0 +1,115 @@
<?php
// cost, salvage, life, period, month, result
return [
[
2400,
300,
36500,
1,
0.13150684931507001,
],
[
2400,
300,
36500,
2,
0.13149964346031001,
],
[
2400,
300,
36500,
7,
0.13146362010870999,
],
[
2400,
300,
36500,
7,
14,
0.91843145432707995,
],
[
2400,
300,
120,
1,
2,
40.0,
],
[
2400,
300,
10,
1,
2,
480.0,
],
[
2400,
300,
10,
2,
1.5,
306.0,
],
[
2400,
300,
10,
10,
22.122547200000302,
],
[
10000,
1000,
5,
1,
4000.0,
],
[
10000,
1000,
5,
2,
2400.0,
],
[
10000,
1000,
5,
3,
1440.0,
],
[
10000,
1000,
5,
4,
864.0,
],
[
10000,
1000,
5,
5,
296.0,
],
[
-2400,
300,
36500,
1,
'#NUM!',
],
[
'ABC',
300,
36500,
1,
'#VALUE!',
],
];

View File

@ -0,0 +1,43 @@
<?php
// settlement, maturity, price, redemption, basis, result
return [
[
'2007-01-25',
'2007-06-15',
97.974999999999994,
100,
1,
0.052420213,
],
[
'2010-04-01',
'2015-03-31',
95,
100,
0.01,
],
[
'2010-04-01',
'2015-03-31',
0,
100,
'#NUM!',
],
[
'2010-04-01',
'2015-03-31',
'ABC',
100,
'#VALUE!',
],
[
'Invalid Date',
'2007-06-15',
97.974999999999994,
100,
1,
'#VALUE!',
],
];

View File

@ -0,0 +1,51 @@
<?php
// fractional_dollar, fraction, result
return [
[
1.02,
16,
1.125,
],
[
1.1000000000000001,
32,
1.3125,
],
[
1.01,
16,
1.0625,
],
[
1.1000000000000001,
16,
1.625,
],
[
1.03,
32,
1.09375,
],
[
1.3,
32,
1.9375,
],
[
1.1200000000000001,
32,
1.375,
],
[
1.2344999999999999,
0,
'#DIV/0!',
],
[
1.2344999999999999,
-2,
'#NUM!',
],
];

View File

@ -0,0 +1,51 @@
<?php
// decimal_dollar, fraction, result
return [
[
1.125,
16,
1.02,
],
[
1.125,
32,
1.04,
],
[
1.0625,
16,
1.01,
],
[
1.625,
16,
1.1000000000000001,
],
[
1.09375,
32,
1.03,
],
[
1.9375,
32,
1.3,
],
[
1.375,
32,
1.1200000000000001,
],
[
1.2344999999999999,
0,
'#DIV/0!',
],
[
1.2344999999999999,
-2,
'#NUM!',
],
];

View File

@ -0,0 +1,31 @@
<?php
// nominal_rate, npery, Result
return [
[
0.052499999999999998,
4,
0.053542667370758003,
],
[
0.10000000000000001,
4,
0.103812890625,
],
[
0.10000000000000001,
2,
0.10249999999999999,
],
[
0.025000000000000001,
2,
0.025156250000000002,
],
[
1,
0,
'#NUM!',
],
];

View File

@ -0,0 +1,65 @@
<?php
// rate, nper, pmt, pv, type, Result
return [
[
0.0050000000000000001,
10,
-200,
-500,
1,
2581.4033740600998,
],
[
0.01,
12,
-1000,
12682.503013197,
],
[
0.0091666666670000008,
35,
-2000,
null,
1,
82846.246372417998,
],
[
0.0050000000000000001,
12,
-100,
-1000,
1,
2301.4018303408998,
],
[
0.0041666666669999998,
60,
-1000,
68006.082841536001,
],
[
0.025000000000000001,
16,
-2000,
0,
1,
39729.460894165997,
],
[
0.10000000000000001,
12,
-100,
0,
2,
'#NUM!',
],
[
0.0,
12,
-100,
-100,
1300,
],
];

View File

@ -0,0 +1,39 @@
<?php
// principal, schedule, Result
return [
[
1,
[
[
0.089999999999999997,
0.11,
0.10000000000000001,
],
],
1.3308899999999999,
],
[
10,
[
0.089999999999999997,
0.11,
0.10000000000000001,
],
13.3089,
],
[
10000,
[
[
0.050000000000000003,
0.050000000000000003,
0.035000000000000003,
0.035000000000000003,
0.035000000000000003,
],
],
12223.614571874999,
],
];

View File

@ -0,0 +1,45 @@
<?php
// Settlement, Maturity, Investment, Redemption, Basis, Result
return [
[
'2008-02-15',
'2008-05-15',
1000000,
1014420,
2,
0.057680000000000002,
],
[
'2005-04-01',
'2010-03-31',
1000,
2125,
0.22500000000000001,
],
[
'2008-02-15',
'2008-05-15',
1000000,
1014420,
'ABC',
'#VALUE!',
],
[
'2008-02-15',
'2008-05-15',
1000000,
-1014420,
2,
'#NUM!',
],
[
'Invalid Date',
'2008-05-15',
1000000,
1014420,
2,
'#VALUE!',
],
];

Some files were not shown because too many files have changed in this diff Show More