Skip to content

Commit ef99fb5

Browse files
committed
test: ignore line endings
1 parent ae4671b commit ef99fb5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/process/tests/PoolTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function test_pool(): void
3434
$results = $invoked->wait();
3535

3636
$this->assertCount(2, $results);
37-
$this->assertSame("hello\n", $results[0]->output);
38-
$this->assertSame("world\n", $results[1]->output);
37+
$this->assertStringEqualsStringIgnoringLineEndings("hello\n", $results[0]->output);
38+
$this->assertStringEqualsStringIgnoringLineEndings("world\n", $results[1]->output);
3939
}
4040

4141
public function test_concurrently(): void
@@ -47,8 +47,8 @@ public function test_concurrently(): void
4747
]);
4848

4949
$this->assertCount(2, $results);
50-
$this->assertSame("hello\n", $results[0]->output);
51-
$this->assertSame("world\n", $results[1]->output);
50+
$this->assertStringEqualsStringIgnoringLineEndings("hello\n", $results[0]->output);
51+
$this->assertStringEqualsStringIgnoringLineEndings("world\n", $results[1]->output);
5252
}
5353

5454
public function test_concurrently_deconstruct(): void
@@ -59,7 +59,7 @@ public function test_concurrently_deconstruct(): void
5959
'echo "world"',
6060
]);
6161

62-
$this->assertSame("hello\n", $hello->output);
63-
$this->assertSame("world\n", $world->output);
62+
$this->assertStringEqualsStringIgnoringLineEndings("hello\n", $hello->output);
63+
$this->assertStringEqualsStringIgnoringLineEndings("world\n", $world->output);
6464
}
6565
}

0 commit comments

Comments
 (0)