Skip to content

Commit 13fd2e5

Browse files
committed
fix: fix test error for Str::shellQuote
1 parent 2b897ee commit 13fd2e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Str/StringHelperTest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ public function testShellQuote(): void
7070
$tests = [
7171
['', '""'],
7272
['abc', 'abc'],
73-
['ab"c', 'ab"c'],
73+
['ab c', '"ab c"'],
74+
['ab"c', "'ab\"c'"],
7475
];
76+
7577
foreach ($tests as [$given, $want]) {
76-
self::assertSame($want, Str::shellQuote($given));
78+
$this->assertEquals($want, Str::shellQuote($given));
7779
}
7880
}
7981

0 commit comments

Comments
 (0)