Skip to content

Commit

Permalink
Split up long line in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderdlm committed Jun 7, 2024
1 parent 1d32287 commit b379a65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/KernelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function testHostDetectionWithPhpVersion(): void
{
$socketFolder = getenv('HOME') . '/.sock';
$version = PHP_MAJOR_VERSION . PHP_MINOR_VERSION;
$expectedSocket = 'unix://' . $socketFolder . '/pseudo' . $version . '.sock';

mkdir($socketFolder);
file_put_contents($socketFolder . '/pseudo83.sock', '');
Expand All @@ -53,7 +54,7 @@ public function testHostDetectionWithPhpVersion(): void
file_put_contents($socketFolder . '/pseudo.sock', '');
$kernel = new Kernel();

$this->assertEquals('unix://' . $socketFolder . '/pseudo'.$version.'.sock', $kernel->connection->getSocketAddress());
$this->assertEquals($expectedSocket, $kernel->connection->getSocketAddress());

unlink($socketFolder . '/pseudo83.sock');
unlink($socketFolder . '/pseudo82.sock');
Expand Down

0 comments on commit b379a65

Please sign in to comment.