mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 15:18:41 +00:00
Fix tests
This commit is contained in:
parent
9c1c339d37
commit
662651236e
|
|
@ -422,7 +422,7 @@ final class StringUtils
|
||||||
/**
|
/**
|
||||||
* Turn ints into spreadsheet column names
|
* Turn ints into spreadsheet column names
|
||||||
*
|
*
|
||||||
* @param int $num Column number
|
* @param int $num Column number (1 = A)
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
|
|
@ -437,7 +437,7 @@ final class StringUtils
|
||||||
$result = '';
|
$result = '';
|
||||||
while ($num >= 0) {
|
while ($num >= 0) {
|
||||||
$remainder = $num % 26;
|
$remainder = $num % 26;
|
||||||
$result = \chr(65 + $remainder) . $result;
|
$result = \chr(64 + $remainder) . $result;
|
||||||
|
|
||||||
if ($num < 26) {
|
if ($num < 26) {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -270,7 +270,7 @@ final class HttpRequestTest extends \PHPUnit\Framework\TestCase
|
||||||
'b' => [4, 5],
|
'b' => [4, 5],
|
||||||
];
|
];
|
||||||
|
|
||||||
$request->setData('abc', \json_encode($data) . ',');
|
$request->setData('abc', \json_encode($data));
|
||||||
self::assertEquals($data, $request->getDataJson('abc'));
|
self::assertEquals($data, $request->getDataJson('abc'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@ declare(strict_types=1);
|
||||||
|
|
||||||
function noDeprecated() : string
|
function noDeprecated() : string
|
||||||
{
|
{
|
||||||
return \is_string('');
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user