Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 4 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /