mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-13 03:26:26 +00:00
Typos in Test Comments
This commit is contained in:
@@ -19,7 +19,8 @@ class CharTest extends AllSetupTeardown
|
||||
#[DataProvider('providerCHAR')]
|
||||
public function testCHAR(mixed $expectedResult, mixed $character = 'omitted'): void
|
||||
{
|
||||
// if espected is array, 1st is for char, 2nd for unichar
|
||||
// If expected is array, 1st is for CHAR, 2nd for UNICHAR,
|
||||
// 3rd is for Mac CHAR if different from Windows.
|
||||
if (is_array($expectedResult)) {
|
||||
$expectedResult = $expectedResult[0];
|
||||
}
|
||||
@@ -39,7 +40,8 @@ class CharTest extends AllSetupTeardown
|
||||
public function testMacCHAR(mixed $expectedResult, mixed $character = 'omitted'): void
|
||||
{
|
||||
CC::setMacCharacterSet();
|
||||
// if espected is array, 1st is for CHAR, 2nd UNICHAR, 3rd Mac CHAR
|
||||
// If expected is array, 1st is for CHAR, 2nd for UNICHAR,
|
||||
// 3rd is for Mac CHAR if different from Windows.
|
||||
if (is_array($expectedResult)) {
|
||||
$expectedResult = $expectedResult[2] ?? $expectedResult[0];
|
||||
}
|
||||
|
||||
@@ -19,7 +19,8 @@ class CodeTest extends AllSetupTeardown
|
||||
#[DataProvider('providerCODE')]
|
||||
public function testCODE(mixed $expectedResult, mixed $character = 'omitted'): void
|
||||
{
|
||||
// if espected is array, 1st is for code, 2nd for unicode
|
||||
// If expected is array, 1st is for CODE, 2nd for UNICODE,
|
||||
// 3rd is for Mac CODE if different from Windows.
|
||||
if (is_array($expectedResult)) {
|
||||
$expectedResult = $expectedResult[0];
|
||||
}
|
||||
@@ -39,7 +40,8 @@ class CodeTest extends AllSetupTeardown
|
||||
public function testMacCODE(mixed $expectedResult, mixed $character = 'omitted'): void
|
||||
{
|
||||
CC::setMacCharacterSet();
|
||||
// if espected is array, 1st is for code, 2nd unicode, 3rd Mac CODE
|
||||
// If expected is array, 1st is for CODE, 2nd for UNICODE,
|
||||
// 3rd is for Mac CODE if different from Windows.
|
||||
if (is_array($expectedResult)) {
|
||||
$expectedResult = $expectedResult[2] ?? $expectedResult[0];
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@ class UnicharTest extends AllSetupTeardown
|
||||
#[DataProvider('providerCHAR')]
|
||||
public function testCHAR(mixed $expectedResult, mixed $character = 'omitted'): void
|
||||
{
|
||||
// if espected is array, 1st is for char, 2nd for unichar
|
||||
// If expected is array, 1st is for CHAR, 2nd for UNICHAR,
|
||||
// 3rd is for Mac CHAR if different from Windows.
|
||||
if (is_array($expectedResult)) {
|
||||
$expectedResult = $expectedResult[1];
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@ class UnicodeTest extends AllSetupTeardown
|
||||
#[DataProvider('providerCODE')]
|
||||
public function testCODE(mixed $expectedResult, mixed $character = 'omitted'): void
|
||||
{
|
||||
// if espected is array, 1st is for code, 2nd for unicode
|
||||
// If expected is array, 1st is for CODE, 2nd for UNICODE,
|
||||
// 3rd is for Mac CODE if different from Windows.
|
||||
if (is_array($expectedResult)) {
|
||||
$expectedResult = $expectedResult[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user