Skip to content

Commit

Permalink
Add a test validating that trailing slash is permitted and does not r…
Browse files Browse the repository at this point in the history
…emove the option-passed stream
  • Loading branch information
Seldaek committed Apr 14, 2020
1 parent f47a198 commit 5989eb1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ public function testFromDsnWithOptions()
);
}

public function testFromDsnWithOptionsAndTrailingSlash()
{
$this->assertEquals(
Connection::fromDsn('redis://localhost/', ['stream' => 'queue', 'group' => 'group1', 'consumer' => 'consumer1', 'auto_setup' => false, 'serializer' => 2]),
Connection::fromDsn('redis://localhost/queue/group1/consumer1?serializer=2&auto_setup=0')
);
}

public function testFromDsnWithQueryOptions()
{
$this->assertEquals(
Expand Down

0 comments on commit 5989eb1

Please sign in to comment.