Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0ca625 commit f2a63c1Copy full SHA for f2a63c1
src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/ConnectionTest.php
@@ -76,12 +76,22 @@ public function testFromDsnWithOptions()
76
public function testFromDsnWithTls()
77
{
78
$redis = $this->createMock(\Redis::class);
79
- $redis->expects($this->exactly(2))
+ $redis->expects($this->once())
80
->method('connect')
81
->with('tls://127.0.0.1', 6379)
82
->willReturn(null);
83
84
Connection::fromDsn('redis://127.0.0.1?tls=1', [], $redis);
85
+ }
86
+
87
+ public function testFromDsnWithTlsOption()
88
+ {
89
+ $redis = $this->createMock(\Redis::class);
90
91
+ ->method('connect')
92
+ ->with('tls://127.0.0.1', 6379)
93
+ ->willReturn(null);
94
95
Connection::fromDsn('redis://127.0.0.1', ['tls' => true], $redis);
96
}
97
0 commit comments