Add PHP unit tests

Check\*
Combined\*
Convert\*
Create\Hash (stub)
This commit is contained in:
Clemens Schwaighofer
2022-01-11 19:58:33 +09:00
parent 5452bffdb4
commit 7fd5062064
14 changed files with 2697 additions and 43 deletions

View File

@@ -30,7 +30,7 @@ final class CoreLibsConvertMathTest extends TestCase
* Undocumented function
*
* @dataProvider fceilProvider
* @testdox Math::fceil: Input $input must be $expected
* @testdox fceil: Input $input must be $expected
*
* @param float $input
* @param int $expected
@@ -61,7 +61,7 @@ final class CoreLibsConvertMathTest extends TestCase
* Undocumented function
*
* @dataProvider floorProvider
* @testdox Math::floor: Input $input with cutoff $cutoff must be $expected
* @testdox floor: Input $input with cutoff $cutoff must be $expected
*
* @param int $input
* @param int $cutoff
@@ -95,7 +95,7 @@ final class CoreLibsConvertMathTest extends TestCase
* Undocumented function
*
* @dataProvider initNumericProvider
* @testdox Math::initNumeric: Input $info $input must match $expected [$_dataName]
* @testdox initNumeric: Input $info $input must match $expected [$_dataName]
*
* @param int|float|string $input
* @param float $expected
@@ -113,7 +113,7 @@ final class CoreLibsConvertMathTest extends TestCase
/**
* A testWith sample
*
* @testdox Math::initNumeric: alternate tests $input => $expected ($info) [$_dataName]
* @testdox initNumeric: alternate tests $input => $expected ($info) [$_dataName]
* @testWith [123.123, 123.123, "float"]
* ["123.123", 123.123, "string"]
*