Skip to content

Commit 2b897ee

Browse files
committed
fix: fix unit tests error on action
1 parent c791e81 commit 2b897ee

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

test/Arr/ArrHelperTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
*/
1919
class ArrHelperTest extends TestCase
2020
{
21+
public function testIsList(): void
22+
{
23+
$this->assertTrue(Arr::isList(['a', 'b']));
24+
$this->assertFalse(Arr::isList(['a' => 'v0', 'b']));
25+
$this->assertTrue(Arr::isAssoc(['a' => 'v0', 'b']));
26+
}
27+
2128
public function testGetKeyMaxWidth(): void
2229
{
2330
$data = [

test/Str/StringHelperTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testParamQuotes(): void
6868
public function testShellQuote(): void
6969
{
7070
$tests = [
71-
['', ''],
71+
['', '""'],
7272
['abc', 'abc'],
7373
['ab"c', 'ab"c'],
7474
];

0 commit comments

Comments
 (0)