Reduce PHPStan error in tests
This commit is contained in:
parent
89aa7e6fcd
commit
49f87de165
|
|
@ -81,6 +81,7 @@
|
||||||
"mpdf/mpdf": "^8.0",
|
"mpdf/mpdf": "^8.0",
|
||||||
"phpcompatibility/php-compatibility": "^9.3",
|
"phpcompatibility/php-compatibility": "^9.3",
|
||||||
"phpstan/phpstan": "^0.12.82",
|
"phpstan/phpstan": "^0.12.82",
|
||||||
|
"phpstan/phpstan-phpunit": "^0.12.18",
|
||||||
"phpunit/phpunit": "^8.5",
|
"phpunit/phpunit": "^8.5",
|
||||||
"squizlabs/php_codesniffer": "^3.5",
|
"squizlabs/php_codesniffer": "^3.5",
|
||||||
"tecnickcom/tcpdf": "^6.3"
|
"tecnickcom/tcpdf": "^6.3"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "89b62d75519340c289a3a763245f1ca0",
|
"content-hash": "3be2673a6367d296c616bf9c34b77953",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "ezyang/htmlpurifier",
|
"name": "ezyang/htmlpurifier",
|
||||||
|
|
@ -2023,6 +2023,61 @@
|
||||||
],
|
],
|
||||||
"time": "2021-03-19T06:08:17+00:00"
|
"time": "2021-03-19T06:08:17+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "phpstan/phpstan-phpunit",
|
||||||
|
"version": "0.12.18",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/phpstan/phpstan-phpunit.git",
|
||||||
|
"reference": "ab44aec7cfb5cb267b8bc30a8caea86dd50d1f72"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/ab44aec7cfb5cb267b8bc30a8caea86dd50d1f72",
|
||||||
|
"reference": "ab44aec7cfb5cb267b8bc30a8caea86dd50d1f72",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": "^7.1 || ^8.0",
|
||||||
|
"phpstan/phpstan": "^0.12.60"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"phpunit/phpunit": "<7.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phing/phing": "^2.16.3",
|
||||||
|
"php-parallel-lint/php-parallel-lint": "^1.2",
|
||||||
|
"phpstan/phpstan-strict-rules": "^0.12.6",
|
||||||
|
"phpunit/phpunit": "^7.5.20"
|
||||||
|
},
|
||||||
|
"type": "phpstan-extension",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "0.12-dev"
|
||||||
|
},
|
||||||
|
"phpstan": {
|
||||||
|
"includes": [
|
||||||
|
"extension.neon",
|
||||||
|
"rules.neon"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"PHPStan\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"description": "PHPUnit extensions and rules for PHPStan",
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/phpstan/phpstan-phpunit/issues",
|
||||||
|
"source": "https://github.com/phpstan/phpstan-phpunit/tree/0.12.18"
|
||||||
|
},
|
||||||
|
"time": "2021-03-06T11:51:27+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-code-coverage",
|
"name": "phpunit/php-code-coverage",
|
||||||
"version": "7.0.14",
|
"version": "7.0.14",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,5 +1,7 @@
|
||||||
includes:
|
includes:
|
||||||
- phpstan-baseline.neon
|
- phpstan-baseline.neon
|
||||||
|
- vendor/phpstan/phpstan-phpunit/extension.neon
|
||||||
|
- vendor/phpstan/phpstan-phpunit/rules.neon
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
level: max
|
level: max
|
||||||
|
|
@ -8,11 +10,15 @@ parameters:
|
||||||
- tests/
|
- tests/
|
||||||
parallel:
|
parallel:
|
||||||
processTimeout: 300.0
|
processTimeout: 300.0
|
||||||
|
checkMissingIterableValueType: false
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- '~^Class GdImage not found\.$~'
|
- '~^Class GdImage not found\.$~'
|
||||||
- '~^Return typehint of method .* has invalid type GdImage\.$~'
|
- '~^Return typehint of method .* has invalid type GdImage\.$~'
|
||||||
- '~^Property .* has unknown class GdImage as its type\.$~'
|
- '~^Property .* has unknown class GdImage as its type\.$~'
|
||||||
- '~^Parameter .* of method .* has invalid typehint type GdImage\.$~'
|
- '~^Parameter .* of method .* has invalid typehint type GdImage\.$~'
|
||||||
|
# Accept a bit anything for assert methods
|
||||||
|
- '~^Parameter \#2 .* of static method PHPUnit\\Framework\\Assert\:\:assert\w+\(\) expects .*, .* given\.$~'
|
||||||
|
- '~^Method PhpOffice\\PhpSpreadsheetTests\\.*\:\:test.*\(\) has parameter \$args with no typehint specified\.$~'
|
||||||
|
|
||||||
# Ignore all JpGraph issues
|
# Ignore all JpGraph issues
|
||||||
- '~^Constant (MARK_CIRCLE|MARK_CROSS|MARK_DIAMOND|MARK_DTRIANGLE|MARK_FILLEDCIRCLE|MARK_SQUARE|MARK_STAR|MARK_UTRIANGLE|MARK_X|SIDE_RIGHT) not found\.$~'
|
- '~^Constant (MARK_CIRCLE|MARK_CROSS|MARK_DIAMOND|MARK_DTRIANGLE|MARK_FILLEDCIRCLE|MARK_SQUARE|MARK_STAR|MARK_UTRIANGLE|MARK_X|SIDE_RIGHT) not found\.$~'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Shared\File;
|
||||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
require __DIR__ . '/../Header.php';
|
require __DIR__ . '/../Header.php';
|
||||||
|
|
@ -35,7 +36,7 @@ $helper->log('Write link: ' . $baseUrl);
|
||||||
|
|
||||||
$drawing->setWorksheet($aSheet);
|
$drawing->setWorksheet($aSheet);
|
||||||
|
|
||||||
$filename = tempnam(\PhpOffice\PhpSpreadsheet\Shared\File::sysGetTempDir(), 'phpspreadsheet-test');
|
$filename = File::temporaryFilename();
|
||||||
|
|
||||||
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, $inputFileType);
|
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, $inputFileType);
|
||||||
$writer->save($filename);
|
$writer->save($filename);
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class WeekDay
|
||||||
* Excel Function:
|
* Excel Function:
|
||||||
* WEEKDAY(dateValue[,style])
|
* WEEKDAY(dateValue[,style])
|
||||||
*
|
*
|
||||||
* @param float|int|string $dateValue Excel date serial value (float), PHP date timestamp (integer),
|
* @param null|float|int|string $dateValue Excel date serial value (float), PHP date timestamp (integer),
|
||||||
* PHP DateTime object, or a standard date string
|
* PHP DateTime object, or a standard date string
|
||||||
* @param int $style A number that determines the type of return value
|
* @param int $style A number that determines the type of return value
|
||||||
* 1 or omitted Numbers 1 (Sunday) through 7 (Saturday).
|
* 1 or omitted Numbers 1 (Sunday) through 7 (Saturday).
|
||||||
|
|
|
||||||
|
|
@ -131,18 +131,10 @@ class Legend
|
||||||
* Set allow overlay of other elements?
|
* Set allow overlay of other elements?
|
||||||
*
|
*
|
||||||
* @param bool $overlay
|
* @param bool $overlay
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
*/
|
||||||
public function setOverlay($overlay)
|
public function setOverlay($overlay): void
|
||||||
{
|
{
|
||||||
if (!is_bool($overlay)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->overlay = $overlay;
|
$this->overlay = $overlay;
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ use Psr\SimpleCache\CacheInterface;
|
||||||
class Cells
|
class Cells
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \Psr\SimpleCache\CacheInterface
|
* @var CacheInterface
|
||||||
*/
|
*/
|
||||||
private $cache;
|
private $cache;
|
||||||
|
|
||||||
|
|
@ -405,7 +405,7 @@ class Cells
|
||||||
* @param string $pCoord Coordinate of the cell to update
|
* @param string $pCoord Coordinate of the cell to update
|
||||||
* @param Cell $cell Cell to update
|
* @param Cell $cell Cell to update
|
||||||
*
|
*
|
||||||
* @return \PhpOffice\PhpSpreadsheet\Cell\Cell
|
* @return Cell
|
||||||
*/
|
*/
|
||||||
public function add($pCoord, Cell $cell)
|
public function add($pCoord, Cell $cell)
|
||||||
{
|
{
|
||||||
|
|
@ -426,7 +426,7 @@ class Cells
|
||||||
*
|
*
|
||||||
* @param string $pCoord Coordinate of the cell
|
* @param string $pCoord Coordinate of the cell
|
||||||
*
|
*
|
||||||
* @return null|\PhpOffice\PhpSpreadsheet\Cell\Cell Cell that was found, or null if not found
|
* @return null|Cell Cell that was found, or null if not found
|
||||||
*/
|
*/
|
||||||
public function get($pCoord)
|
public function get($pCoord)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
namespace PhpOffice\PhpSpreadsheet\Shared;
|
namespace PhpOffice\PhpSpreadsheet\Shared;
|
||||||
|
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
|
use PhpOffice\PhpSpreadsheet\Exception;
|
||||||
use ZipArchive;
|
use ZipArchive;
|
||||||
|
|
||||||
class File
|
class File
|
||||||
|
|
@ -124,6 +125,16 @@ class File
|
||||||
return realpath(sys_get_temp_dir());
|
return realpath(sys_get_temp_dir());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function temporaryFilename(): string
|
||||||
|
{
|
||||||
|
$filename = tempnam(self::sysGetTempDir(), 'phpspreadsheet');
|
||||||
|
if ($filename === false) {
|
||||||
|
throw new Exception('Could not create temporary file');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $filename;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assert that given path is an existing file and is readable, otherwise throw exception.
|
* Assert that given path is an existing file and is readable, otherwise throw exception.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,14 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class CalculationTest extends TestCase
|
class CalculationTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $locale;
|
private $locale;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -47,7 +53,7 @@ class CalculationTest extends TestCase
|
||||||
self::assertEquals($expectedResultOpenOffice, $resultOpenOffice, 'should be OpenOffice compatible');
|
self::assertEquals($expectedResultOpenOffice, $resultOpenOffice, 'should be OpenOffice compatible');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBinaryComparisonOperation()
|
public function providerBinaryComparisonOperation(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/CalculationBinaryComparisonOperation.php';
|
return require 'tests/data/CalculationBinaryComparisonOperation.php';
|
||||||
}
|
}
|
||||||
|
|
@ -64,7 +70,7 @@ class CalculationTest extends TestCase
|
||||||
self::assertIsCallable($functionCall);
|
self::assertIsCallable($functionCall);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerGetFunctions()
|
public function providerGetFunctions(): array
|
||||||
{
|
{
|
||||||
return Calculation::getInstance()->getFunctions();
|
return Calculation::getInstance()->getFunctions();
|
||||||
}
|
}
|
||||||
|
|
@ -89,7 +95,7 @@ class CalculationTest extends TestCase
|
||||||
self::assertTrue($calculation->setLocale($locale));
|
self::assertTrue($calculation->setLocale($locale));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerCanLoadAllSupportedLocales()
|
public function providerCanLoadAllSupportedLocales(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['bg'],
|
['bg'],
|
||||||
|
|
@ -118,11 +124,13 @@ class CalculationTest extends TestCase
|
||||||
$calculation = Calculation::getInstance();
|
$calculation = Calculation::getInstance();
|
||||||
|
|
||||||
$tree = $calculation->parseFormula('=_xlfn.ISFORMULA(A1)');
|
$tree = $calculation->parseFormula('=_xlfn.ISFORMULA(A1)');
|
||||||
|
self::assertIsArray($tree);
|
||||||
self::assertCount(3, $tree);
|
self::assertCount(3, $tree);
|
||||||
$function = $tree[2];
|
$function = $tree[2];
|
||||||
self::assertEquals('Function', $function['type']);
|
self::assertEquals('Function', $function['type']);
|
||||||
|
|
||||||
$tree = $calculation->parseFormula('=_xlfn.STDEV.S(A1:B2)');
|
$tree = $calculation->parseFormula('=_xlfn.STDEV.S(A1:B2)');
|
||||||
|
self::assertIsArray($tree);
|
||||||
self::assertCount(5, $tree);
|
self::assertCount(5, $tree);
|
||||||
$function = $tree[4];
|
$function = $tree[4];
|
||||||
self::assertEquals('Function', $function['type']);
|
self::assertEquals('Function', $function['type']);
|
||||||
|
|
@ -205,6 +213,7 @@ class CalculationTest extends TestCase
|
||||||
// Very simple formula
|
// Very simple formula
|
||||||
$formula = '=IF(A1="please +",B1)';
|
$formula = '=IF(A1="please +",B1)';
|
||||||
$tokens = $calculation->parseFormula($formula);
|
$tokens = $calculation->parseFormula($formula);
|
||||||
|
self::assertIsArray($tokens);
|
||||||
|
|
||||||
$foundEqualAssociatedToStoreKey = false;
|
$foundEqualAssociatedToStoreKey = false;
|
||||||
$foundConditionalOnB1 = false;
|
$foundConditionalOnB1 = false;
|
||||||
|
|
@ -234,6 +243,7 @@ class CalculationTest extends TestCase
|
||||||
// Internal operation
|
// Internal operation
|
||||||
$formula = '=IF(A1="please +",SUM(B1:B3))+IF(A2="please *",PRODUCT(C1:C3), C1)';
|
$formula = '=IF(A1="please +",SUM(B1:B3))+IF(A2="please *",PRODUCT(C1:C3), C1)';
|
||||||
$tokens = $calculation->parseFormula($formula);
|
$tokens = $calculation->parseFormula($formula);
|
||||||
|
self::assertIsArray($tokens);
|
||||||
|
|
||||||
$plusGotTagged = false;
|
$plusGotTagged = false;
|
||||||
$productFunctionCorrectlyTagged = false;
|
$productFunctionCorrectlyTagged = false;
|
||||||
|
|
@ -263,6 +273,7 @@ class CalculationTest extends TestCase
|
||||||
|
|
||||||
$formula = '=IF(A1="please +",SUM(B1:B3),1+IF(NOT(A2="please *"),C2-C1,PRODUCT(C1:C3)))';
|
$formula = '=IF(A1="please +",SUM(B1:B3),1+IF(NOT(A2="please *"),C2-C1,PRODUCT(C1:C3)))';
|
||||||
$tokens = $calculation->parseFormula($formula);
|
$tokens = $calculation->parseFormula($formula);
|
||||||
|
self::assertIsArray($tokens);
|
||||||
|
|
||||||
$plusCorrectlyTagged = false;
|
$plusCorrectlyTagged = false;
|
||||||
$productFunctionCorrectlyTagged = false;
|
$productFunctionCorrectlyTagged = false;
|
||||||
|
|
@ -307,6 +318,8 @@ class CalculationTest extends TestCase
|
||||||
|
|
||||||
$formula = '=IF(A1="flag",IF(A2<10, 0) + IF(A3<10000, 0))';
|
$formula = '=IF(A1="flag",IF(A2<10, 0) + IF(A3<10000, 0))';
|
||||||
$tokens = $calculation->parseFormula($formula);
|
$tokens = $calculation->parseFormula($formula);
|
||||||
|
self::assertIsArray($tokens);
|
||||||
|
|
||||||
$properlyTaggedPlus = false;
|
$properlyTaggedPlus = false;
|
||||||
foreach ($tokens as $token) {
|
foreach ($tokens as $token) {
|
||||||
$isPlus = $token['value'] === '+';
|
$isPlus = $token['value'] === '+';
|
||||||
|
|
@ -367,7 +380,7 @@ class CalculationTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $calculated);
|
self::assertEquals($expectedResult, $calculated);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function dataProviderBranchPruningFullExecution()
|
public function dataProviderBranchPruningFullExecution(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Calculation.php';
|
return require 'tests/data/Calculation/Calculation.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,20 +2,23 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpSpreadsheetTests\Calculation;
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||||
|
use PhpOffice\PhpSpreadsheet\NamedRange;
|
||||||
use PhpOffice\PhpSpreadsheet\Shared\File;
|
use PhpOffice\PhpSpreadsheet\Shared\File;
|
||||||
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class DefinedNameConfusedForCellTest extends TestCase
|
class DefinedNameConfusedForCellTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testDefinedName(): void
|
public function testDefinedName(): void
|
||||||
{
|
{
|
||||||
$obj = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
|
$obj = new Spreadsheet();
|
||||||
$sheet0 = $obj->setActiveSheetIndex(0);
|
$sheet0 = $obj->setActiveSheetIndex(0);
|
||||||
$sheet0->setCellValue('A1', 2);
|
$sheet0->setCellValue('A1', 2);
|
||||||
$obj->addNamedRange(new \PhpOffice\PhpSpreadsheet\NamedRange('A1A', $sheet0, 'A1'));
|
$obj->addNamedRange(new NamedRange('A1A', $sheet0, 'A1'));
|
||||||
$sheet0->setCellValue('B1', '=2*A1A');
|
$sheet0->setCellValue('B1', '=2*A1A');
|
||||||
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($obj, 'Xlsx');
|
$writer = IOFactory::createWriter($obj, 'Xlsx');
|
||||||
$filename = tempnam(File::sysGetTempDir(), 'phpspreadsheet-test');
|
$filename = File::temporaryFilename();
|
||||||
$writer->save($filename);
|
$writer->save($filename);
|
||||||
self::assertTrue(true);
|
self::assertTrue(true);
|
||||||
unlink($filename);
|
unlink($filename);
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,10 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class RangeTest extends TestCase
|
class RangeTest extends TestCase
|
||||||
{
|
{
|
||||||
protected $spreadSheet;
|
/**
|
||||||
|
* @var Spreadsheet
|
||||||
|
*/
|
||||||
|
private $spreadSheet;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -40,7 +43,7 @@ class RangeTest extends TestCase
|
||||||
self::assertSame($expectedResult, $actualRresult);
|
self::assertSame($expectedResult, $actualRresult);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerRangeEvaluation()
|
public function providerRangeEvaluation(): array
|
||||||
{
|
{
|
||||||
return[
|
return[
|
||||||
['=SUM(A1:B3,A1:C2)', 48],
|
['=SUM(A1:B3,A1:C2)', 48],
|
||||||
|
|
@ -88,7 +91,7 @@ class RangeTest extends TestCase
|
||||||
self::assertSame($expectedResult, $sumRresult);
|
self::assertSame($expectedResult, $sumRresult);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerNamedRangeEvaluation()
|
public function providerNamedRangeEvaluation(): array
|
||||||
{
|
{
|
||||||
return[
|
return[
|
||||||
['$A$1:$B$3', '$A$1:$C$2', '=SUM(GROUP1,GROUP2)', 48],
|
['$A$1:$B$3', '$A$1:$C$2', '=SUM(GROUP1,GROUP2)', 48],
|
||||||
|
|
@ -123,7 +126,7 @@ class RangeTest extends TestCase
|
||||||
self::assertSame($expectedResult, $sumRresult);
|
self::assertSame($expectedResult, $sumRresult);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerUTF8NamedRangeEvaluation()
|
public function providerUTF8NamedRangeEvaluation(): array
|
||||||
{
|
{
|
||||||
return[
|
return[
|
||||||
[['Γειά', 'σου', 'Κόσμε'], ['$A$1', '$B$1:$B$2', '$C$1:$C$3'], '=SUM(Γειά,σου,Κόσμε)', 26],
|
[['Γειά', 'σου', 'Κόσμε'], ['$A$1', '$B$1:$B$2', '$C$1:$C$3'], '=SUM(Γειά,σου,Κόσμε)', 26],
|
||||||
|
|
@ -151,7 +154,7 @@ class RangeTest extends TestCase
|
||||||
self::assertSame($expectedCount, $actualCount);
|
self::assertSame($expectedCount, $actualCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerCompositeNamedRangeEvaluation()
|
public function providerCompositeNamedRangeEvaluation(): array
|
||||||
{
|
{
|
||||||
return[
|
return[
|
||||||
// Calculation engine doesn't yet handle union ranges with overlap
|
// Calculation engine doesn't yet handle union ranges with overlap
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class FormulaAsStringTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerFunctionsAsString()
|
public function providerFunctionsAsString(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/FunctionsAsString.php';
|
return require 'tests/data/Calculation/FunctionsAsString.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DAverageTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DAverageTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Quarter', 'Area', 'Sales Rep.', 'Sales'],
|
['Quarter', 'Area', 'Sales Rep.', 'Sales'],
|
||||||
|
|
@ -63,7 +63,7 @@ class DAverageTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDAverage()
|
public function providerDAverage(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DCountATest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DCountATest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
||||||
|
|
@ -59,7 +59,7 @@ class DCountATest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDCountA()
|
public function providerDCountA(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DCountTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DCountTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
||||||
|
|
@ -59,7 +59,7 @@ class DCountTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database3()
|
private function database3(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Status', 'Value'],
|
['Status', 'Value'],
|
||||||
|
|
@ -74,7 +74,7 @@ class DCountTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDCount()
|
public function providerDCount(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DGetTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DGetTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Quarter', 'Area', 'Sales Rep.', 'Sales'],
|
['Quarter', 'Area', 'Sales Rep.', 'Sales'],
|
||||||
|
|
@ -63,7 +63,7 @@ class DGetTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDGet()
|
public function providerDGet(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DMaxTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DMaxTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Quarter', 'Area', 'Sales Rep.', 'Sales'],
|
['Quarter', 'Area', 'Sales Rep.', 'Sales'],
|
||||||
|
|
@ -63,7 +63,7 @@ class DMaxTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDMax()
|
public function providerDMax(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DMinTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DMinTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
||||||
|
|
@ -59,7 +59,7 @@ class DMinTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDMin()
|
public function providerDMin(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ class DProductTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -41,7 +41,7 @@ class DProductTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Name', 'Date', 'Test', 'Score'],
|
['Name', 'Date', 'Test', 'Score'],
|
||||||
|
|
@ -60,7 +60,7 @@ class DProductTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDProduct()
|
public function providerDProduct(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DStDevPTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DStDevPTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
||||||
|
|
@ -59,7 +59,7 @@ class DStDevPTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDStDevP()
|
public function providerDStDevP(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DStDevTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DStDevTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
||||||
|
|
@ -59,7 +59,7 @@ class DStDevTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDStDev()
|
public function providerDStDev(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DSumTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DSumTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Quarter', 'Area', 'Sales Rep.', 'Sales'],
|
['Quarter', 'Area', 'Sales Rep.', 'Sales'],
|
||||||
|
|
@ -63,7 +63,7 @@ class DSumTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDSum()
|
public function providerDSum(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DVarPTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DVarPTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
||||||
|
|
@ -59,7 +59,7 @@ class DVarPTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDVarP()
|
public function providerDVarP(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class DVarTest extends TestCase
|
||||||
self::assertSame($expectedResult, $result);
|
self::assertSame($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database1()
|
private function database1(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
['Tree', 'Height', 'Age', 'Yield', 'Profit'],
|
||||||
|
|
@ -40,7 +40,7 @@ class DVarTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function database2()
|
private function database2(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
['Name', 'Gender', 'Age', 'Subject', 'Score'],
|
||||||
|
|
@ -59,7 +59,7 @@ class DVarTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDVar()
|
public function providerDVar(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -6,18 +6,34 @@ use PhpOffice\PhpSpreadsheet\Calculation\Exception as CalcException;
|
||||||
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
|
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
|
||||||
use PhpOffice\PhpSpreadsheet\Shared\Date;
|
use PhpOffice\PhpSpreadsheet\Shared\Date;
|
||||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class AllSetupTeardown extends TestCase
|
class AllSetupTeardown extends TestCase
|
||||||
{
|
{
|
||||||
protected $compatibilityMode;
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected $excelCalendar;
|
/**
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
private $excelCalendar;
|
||||||
|
|
||||||
protected $returnDateType;
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private $returnDateType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Spreadsheet
|
||||||
|
*/
|
||||||
protected $spreadsheet;
|
protected $spreadsheet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Worksheet
|
||||||
|
*/
|
||||||
protected $sheet;
|
protected $sheet;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -35,8 +51,6 @@ class AllSetupTeardown extends TestCase
|
||||||
Functions::setCompatibilityMode($this->compatibilityMode);
|
Functions::setCompatibilityMode($this->compatibilityMode);
|
||||||
Functions::setReturnDateType($this->returnDateType);
|
Functions::setReturnDateType($this->returnDateType);
|
||||||
$this->spreadsheet->disconnectWorksheets();
|
$this->spreadsheet->disconnectWorksheets();
|
||||||
$this->spreadsheet = null;
|
|
||||||
$this->sheet = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static function setMac1904(): void
|
protected static function setMac1904(): void
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class DateDifTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDATEDIF()
|
public function providerDATEDIF(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/DATEDIF.php';
|
return require 'tests/data/Calculation/DateTime/DATEDIF.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class DateTest extends AllSetupTeardown
|
||||||
self::assertEquals($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertEquals($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDATE()
|
public function providerDATE(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/DATE.php';
|
return require 'tests/data/Calculation/DateTime/DATE.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ class DateValueTest extends AllSetupTeardown
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDATEVALUE()
|
public function providerDATEVALUE(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/DATEVALUE.php';
|
return require 'tests/data/Calculation/DateTime/DATEVALUE.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class DayTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResultExcel, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResultExcel, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDAY()
|
public function providerDAY(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/DAY.php';
|
return require 'tests/data/Calculation/DateTime/DAY.php';
|
||||||
}
|
}
|
||||||
|
|
@ -37,7 +37,7 @@ class DayTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResultOpenOffice, $sheet->getCell('A2')->getCalculatedValue());
|
self::assertSame($expectedResultOpenOffice, $sheet->getCell('A2')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDAYOpenOffice()
|
public function providerDAYOpenOffice(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/DAYOpenOffice.php';
|
return require 'tests/data/Calculation/DateTime/DAYOpenOffice.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class Days360Test extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDAYS360()
|
public function providerDAYS360(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/DAYS360.php';
|
return require 'tests/data/Calculation/DateTime/DAYS360.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class DaysTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDAYS()
|
public function providerDAYS(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/DAYS.php';
|
return require 'tests/data/Calculation/DateTime/DAYS.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class EDateTest extends AllSetupTeardown
|
||||||
self::assertEquals($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertEquals($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerEDATE()
|
public function providerEDATE(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/EDATE.php';
|
return require 'tests/data/Calculation/DateTime/EDATE.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class EoMonthTest extends AllSetupTeardown
|
||||||
self::assertEquals($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertEquals($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerEOMONTH()
|
public function providerEOMONTH(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/EOMONTH.php';
|
return require 'tests/data/Calculation/DateTime/EOMONTH.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class HourTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerHOUR()
|
public function providerHOUR(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/HOUR.php';
|
return require 'tests/data/Calculation/DateTime/HOUR.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class IsoWeekNumTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerISOWEEKNUM()
|
public function providerISOWEEKNUM(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/ISOWEEKNUM.php';
|
return require 'tests/data/Calculation/DateTime/ISOWEEKNUM.php';
|
||||||
}
|
}
|
||||||
|
|
@ -40,7 +40,7 @@ class IsoWeekNumTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerISOWEEKNUM1904()
|
public function providerISOWEEKNUM1904(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/ISOWEEKNUM1904.php';
|
return require 'tests/data/Calculation/DateTime/ISOWEEKNUM1904.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class MinuteTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerMINUTE()
|
public function providerMINUTE(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/MINUTE.php';
|
return require 'tests/data/Calculation/DateTime/MINUTE.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class MonthTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerMONTH()
|
public function providerMONTH(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/MONTH.php';
|
return require 'tests/data/Calculation/DateTime/MONTH.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class NetworkDaysTest extends AllSetupTeardown
|
||||||
self::assertEquals($expectedResult, $sheet->getCell('B1')->getCalculatedValue());
|
self::assertEquals($expectedResult, $sheet->getCell('B1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerNETWORKDAYS()
|
public function providerNETWORKDAYS(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/NETWORKDAYS.php';
|
return require 'tests/data/Calculation/DateTime/NETWORKDAYS.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class SecondTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerSECOND()
|
public function providerSECOND(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/SECOND.php';
|
return require 'tests/data/Calculation/DateTime/SECOND.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class TimeTest extends AllSetupTeardown
|
||||||
self::assertEqualsWithDelta($expectedResult, $sheet->getCell('A1')->getCalculatedValue(), 1E-8);
|
self::assertEqualsWithDelta($expectedResult, $sheet->getCell('A1')->getCalculatedValue(), 1E-8);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerTIME()
|
public function providerTIME(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/TIME.php';
|
return require 'tests/data/Calculation/DateTime/TIME.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class TimeValueTest extends AllSetupTeardown
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerTIMEVALUE()
|
public function providerTIMEVALUE(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/TIMEVALUE.php';
|
return require 'tests/data/Calculation/DateTime/TIMEVALUE.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class WeekDayTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerWEEKDAY()
|
public function providerWEEKDAY(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/WEEKDAY.php';
|
return require 'tests/data/Calculation/DateTime/WEEKDAY.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class WeekNumTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerWEEKNUM()
|
public function providerWEEKNUM(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/WEEKNUM.php';
|
return require 'tests/data/Calculation/DateTime/WEEKNUM.php';
|
||||||
}
|
}
|
||||||
|
|
@ -38,7 +38,7 @@ class WeekNumTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerWEEKNUM1904()
|
public function providerWEEKNUM1904(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/WEEKNUM1904.php';
|
return require 'tests/data/Calculation/DateTime/WEEKNUM1904.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class WorkDayTest extends AllSetupTeardown
|
||||||
self::assertEquals($expectedResult, $sheet->getCell('B1')->getCalculatedValue());
|
self::assertEquals($expectedResult, $sheet->getCell('B1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerWORKDAY()
|
public function providerWORKDAY(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/WORKDAY.php';
|
return require 'tests/data/Calculation/DateTime/WORKDAY.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ class YearFracTest extends AllSetupTeardown
|
||||||
self::assertEqualswithDelta($expectedResult, $sheet->getCell('B1')->getCalculatedValue(), 1E-6);
|
self::assertEqualswithDelta($expectedResult, $sheet->getCell('B1')->getCalculatedValue(), 1E-6);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerYEARFRAC()
|
public function providerYEARFRAC(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/YEARFRAC.php';
|
return require 'tests/data/Calculation/DateTime/YEARFRAC.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class YearTest extends AllSetupTeardown
|
||||||
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
self::assertSame($expectedResult, $sheet->getCell('A1')->getCalculatedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerYEAR()
|
public function providerYEAR(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/DateTime/YEAR.php';
|
return require 'tests/data/Calculation/DateTime/YEAR.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BesselITest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBESSELI()
|
public function providerBESSELI(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BESSELI.php';
|
return require 'tests/data/Calculation/Engineering/BESSELI.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BesselJTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBESSEJ()
|
public function providerBESSEJ(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BESSELJ.php';
|
return require 'tests/data/Calculation/Engineering/BESSELJ.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BesselKTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBESSELK()
|
public function providerBESSELK(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BESSELK.php';
|
return require 'tests/data/Calculation/Engineering/BESSELK.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BesselYTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBESSELY()
|
public function providerBESSELY(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BESSELY.php';
|
return require 'tests/data/Calculation/Engineering/BESSELY.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Bin2DecTest extends TestCase
|
class Bin2DecTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Bin2DecTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBIN2DEC()
|
public function providerBIN2DEC(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BIN2DEC.php';
|
return require 'tests/data/Calculation/Engineering/BIN2DEC.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Bin2HexTest extends TestCase
|
class Bin2HexTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Bin2HexTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBIN2HEX()
|
public function providerBIN2HEX(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BIN2HEX.php';
|
return require 'tests/data/Calculation/Engineering/BIN2HEX.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Bin2OctTest extends TestCase
|
class Bin2OctTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Bin2OctTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBIN2OCT()
|
public function providerBIN2OCT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BIN2OCT.php';
|
return require 'tests/data/Calculation/Engineering/BIN2OCT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BitAndTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBITAND()
|
public function providerBITAND(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BITAND.php';
|
return require 'tests/data/Calculation/Engineering/BITAND.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BitLShiftTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBITLSHIFT()
|
public function providerBITLSHIFT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BITLSHIFT.php';
|
return require 'tests/data/Calculation/Engineering/BITLSHIFT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BitOrTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBITOR()
|
public function providerBITOR(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BITOR.php';
|
return require 'tests/data/Calculation/Engineering/BITOR.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BitRShiftTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBITRSHIFT()
|
public function providerBITRSHIFT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BITRSHIFT.php';
|
return require 'tests/data/Calculation/Engineering/BITRSHIFT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class BitXorTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerBITXOR()
|
public function providerBITXOR(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/BITXOR.php';
|
return require 'tests/data/Calculation/Engineering/BITXOR.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class ComplexTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerCOMPLEX()
|
public function providerCOMPLEX(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/COMPLEX.php';
|
return require 'tests/data/Calculation/Engineering/COMPLEX.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ class ConvertUoMTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerCONVERTUOM()
|
public function providerCONVERTUOM(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/CONVERTUOM.php';
|
return require 'tests/data/Calculation/Engineering/CONVERTUOM.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Dec2BinTest extends TestCase
|
class Dec2BinTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Dec2BinTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDEC2BIN()
|
public function providerDEC2BIN(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/DEC2BIN.php';
|
return require 'tests/data/Calculation/Engineering/DEC2BIN.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Dec2HexTest extends TestCase
|
class Dec2HexTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -41,7 +44,7 @@ class Dec2HexTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDEC2HEX()
|
public function providerDEC2HEX(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/DEC2HEX.php';
|
return require 'tests/data/Calculation/Engineering/DEC2HEX.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Dec2OctTest extends TestCase
|
class Dec2OctTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Dec2OctTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDEC2OCT()
|
public function providerDEC2OCT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/DEC2OCT.php';
|
return require 'tests/data/Calculation/Engineering/DEC2OCT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class DeltaTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerDELTA()
|
public function providerDELTA(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/DELTA.php';
|
return require 'tests/data/Calculation/Engineering/DELTA.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ErfCTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerERFC()
|
public function providerERFC(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/ERFC.php';
|
return require 'tests/data/Calculation/Engineering/ERFC.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ErfPreciseTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerERFPRECISE()
|
public function providerERFPRECISE(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/ERFPRECISE.php';
|
return require 'tests/data/Calculation/Engineering/ERFPRECISE.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ErfTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerERF()
|
public function providerERF(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/ERF.php';
|
return require 'tests/data/Calculation/Engineering/ERF.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class GeStepTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerGESTEP()
|
public function providerGESTEP(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/GESTEP.php';
|
return require 'tests/data/Calculation/Engineering/GESTEP.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Hex2BinTest extends TestCase
|
class Hex2BinTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Hex2BinTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerHEX2BIN()
|
public function providerHEX2BIN(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/HEX2BIN.php';
|
return require 'tests/data/Calculation/Engineering/HEX2BIN.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Hex2DecTest extends TestCase
|
class Hex2DecTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Hex2DecTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerHEX2DEC()
|
public function providerHEX2DEC(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/HEX2DEC.php';
|
return require 'tests/data/Calculation/Engineering/HEX2DEC.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Hex2OctTest extends TestCase
|
class Hex2OctTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Hex2OctTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerHEX2OCT()
|
public function providerHEX2OCT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/HEX2OCT.php';
|
return require 'tests/data/Calculation/Engineering/HEX2OCT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ImAbsTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMABS()
|
public function providerIMABS(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMABS.php';
|
return require 'tests/data/Calculation/Engineering/IMABS.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ImArgumentTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMARGUMENT()
|
public function providerIMARGUMENT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMARGUMENT.php';
|
return require 'tests/data/Calculation/Engineering/IMARGUMENT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImConjugateTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImConjugateTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMCONJUGATE()
|
public function providerIMCONJUGATE(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMCONJUGATE.php';
|
return require 'tests/data/Calculation/Engineering/IMCONJUGATE.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImCosTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImCosTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMCOS()
|
public function providerIMCOS(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMCOS.php';
|
return require 'tests/data/Calculation/Engineering/IMCOS.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImCoshTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImCoshTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMCOSH()
|
public function providerIMCOSH(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMCOSH.php';
|
return require 'tests/data/Calculation/Engineering/IMCOSH.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImCotTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImCotTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMCOT()
|
public function providerIMCOT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMCOT.php';
|
return require 'tests/data/Calculation/Engineering/IMCOT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImCscTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImCscTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMCSC()
|
public function providerIMCSC(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMCSC.php';
|
return require 'tests/data/Calculation/Engineering/IMCSC.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImCschTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImCschTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMCSCH()
|
public function providerIMCSCH(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMCSCH.php';
|
return require 'tests/data/Calculation/Engineering/IMCSCH.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImDivTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -36,7 +36,7 @@ class ImDivTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMDIV()
|
public function providerIMDIV(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMDIV.php';
|
return require 'tests/data/Calculation/Engineering/IMDIV.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImExpTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImExpTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMEXP()
|
public function providerIMEXP(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMEXP.php';
|
return require 'tests/data/Calculation/Engineering/IMEXP.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImLnTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImLnTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMLN()
|
public function providerIMLN(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMLN.php';
|
return require 'tests/data/Calculation/Engineering/IMLN.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImLog10Test extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImLog10Test extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMLOG10()
|
public function providerIMLOG10(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMLOG10.php';
|
return require 'tests/data/Calculation/Engineering/IMLOG10.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImLog2Test extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImLog2Test extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMLOG2()
|
public function providerIMLOG2(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMLOG2.php';
|
return require 'tests/data/Calculation/Engineering/IMLOG2.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImPowerTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -36,7 +36,7 @@ class ImPowerTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMPOWER()
|
public function providerIMPOWER(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMPOWER.php';
|
return require 'tests/data/Calculation/Engineering/IMPOWER.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImProductTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -36,7 +36,7 @@ class ImProductTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMPRODUCT()
|
public function providerIMPRODUCT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMPRODUCT.php';
|
return require 'tests/data/Calculation/Engineering/IMPRODUCT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ImRealTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMREAL()
|
public function providerIMREAL(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMREAL.php';
|
return require 'tests/data/Calculation/Engineering/IMREAL.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImSecTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImSecTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMSEC()
|
public function providerIMSEC(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMSEC.php';
|
return require 'tests/data/Calculation/Engineering/IMSEC.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImSechTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImSechTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMSECH()
|
public function providerIMSECH(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMSECH.php';
|
return require 'tests/data/Calculation/Engineering/IMSECH.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImSinTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImSinTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMSIN()
|
public function providerIMSIN(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMSIN.php';
|
return require 'tests/data/Calculation/Engineering/IMSIN.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImSinhTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImSinhTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMSINH()
|
public function providerIMSINH(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMSINH.php';
|
return require 'tests/data/Calculation/Engineering/IMSINH.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImSqrtTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImSqrtTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMSQRT()
|
public function providerIMSQRT(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMSQRT.php';
|
return require 'tests/data/Calculation/Engineering/IMSQRT.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImSubTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -36,7 +36,7 @@ class ImSubTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMSUB()
|
public function providerIMSUB(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMSUB.php';
|
return require 'tests/data/Calculation/Engineering/IMSUB.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImSumTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -36,7 +36,7 @@ class ImSumTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMSUM()
|
public function providerIMSUM(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMSUM.php';
|
return require 'tests/data/Calculation/Engineering/IMSUM.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ImTanTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @var ComplexAssert
|
* @var ComplexAssert
|
||||||
*/
|
*/
|
||||||
protected $complexAssert;
|
private $complexAssert;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ class ImTanTest extends TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMTAN()
|
public function providerIMTAN(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMTAN.php';
|
return require 'tests/data/Calculation/Engineering/IMTAN.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ImaginaryTest extends TestCase
|
||||||
self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerIMAGINARY()
|
public function providerIMAGINARY(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/IMAGINARY.php';
|
return require 'tests/data/Calculation/Engineering/IMAGINARY.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Oct2BinTest extends TestCase
|
class Oct2BinTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Oct2BinTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerOCT2BIN()
|
public function providerOCT2BIN(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/OCT2BIN.php';
|
return require 'tests/data/Calculation/Engineering/OCT2BIN.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Oct2DecTest extends TestCase
|
class Oct2DecTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Oct2DecTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerOCT2DEC()
|
public function providerOCT2DEC(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/OCT2DEC.php';
|
return require 'tests/data/Calculation/Engineering/OCT2DEC.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class Oct2HexTest extends TestCase
|
class Oct2HexTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $compatibilityMode;
|
private $compatibilityMode;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
@ -40,7 +43,7 @@ class Oct2HexTest extends TestCase
|
||||||
self::assertEquals($expectedResult, $result);
|
self::assertEquals($expectedResult, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerOCT2HEX()
|
public function providerOCT2HEX(): array
|
||||||
{
|
{
|
||||||
return require 'tests/data/Calculation/Engineering/OCT2HEX.php';
|
return require 'tests/data/Calculation/Engineering/OCT2HEX.php';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue