Skip to content

Commit b2f2693

Browse files
committed
test: don't use double quotes with echo
1 parent ef99fb5 commit b2f2693

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/process/tests/PoolTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ public function test_pool(): void
1414
{
1515
$executor = new GenericProcessExecutor();
1616
$pool = $executor->pool([
17-
'echo "hello"',
18-
'echo "world"',
17+
'echo hello',
18+
'echo world',
1919
]);
2020

2121
$this->assertInstanceOf(Pool::class, $pool);
2222
$this->assertCount(2, $pool->processes());
2323

2424
// quick immutability check
25-
$pool->processes()->add(new PendingProcess('echo "foo"'));
25+
$pool->processes()->add(new PendingProcess('echo foo'));
2626
$this->assertCount(2, $pool->processes());
2727

2828
$invoked = $pool->start();
@@ -42,8 +42,8 @@ public function test_concurrently(): void
4242
{
4343
$executor = new GenericProcessExecutor();
4444
$results = $executor->concurrently([
45-
'echo "hello"',
46-
'echo "world"',
45+
'echo hello',
46+
'echo world',
4747
]);
4848

4949
$this->assertCount(2, $results);
@@ -55,8 +55,8 @@ public function test_concurrently_deconstruct(): void
5555
{
5656
$executor = new GenericProcessExecutor();
5757
[$hello, $world] = $executor->concurrently([
58-
'echo "hello"',
59-
'echo "world"',
58+
'echo hello',
59+
'echo world',
6060
]);
6161

6262
$this->assertStringEqualsStringIgnoringLineEndings("hello\n", $hello->output);

0 commit comments

Comments
 (0)