fix: Bug with single persistent connection to the same resource (#1512)

* fix: Bug with single persistent connection to the same resource

* Fixed tests

* Additional test fix

* Codestyle fixes
This commit is contained in:
Vladyslav Vildanov
2025-02-24 09:51:55 +02:00
committed by GitHub
parent 974379bd05
commit 09e88b6fd0
6 changed files with 65 additions and 8 deletions
@@ -94,7 +94,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
$this->mockStreamFactory
->expects($this->once())
->method('createStream')
->with(new Parameters())
->withAnyParameters()
->willReturn($this->mockStream);
$this->mockStream
@@ -125,7 +125,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
$this->mockStreamFactory
->expects($this->once())
->method('createStream')
->with(new Parameters())
->withAnyParameters()
->willReturn($this->mockStream);
$this->mockStream
@@ -190,7 +190,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
$this->mockStreamFactory
->expects($this->once())
->method('createStream')
->with(new Parameters())
->withAnyParameters()
->willReturn($this->mockStream);
$this->mockStream
@@ -215,7 +215,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
$this->mockStreamFactory
->expects($this->once())
->method('createStream')
->with(new Parameters())
->withAnyParameters()
->willReturn($this->mockStream);
$this->mockStream
@@ -241,7 +241,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
$this->mockStreamFactory
->expects($this->once())
->method('createStream')
->with(new Parameters())
->withAnyParameters()
->willReturn($this->mockStream);
$this->mockStream
@@ -265,7 +265,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
$this->mockStreamFactory
->expects($this->once())
->method('createStream')
->with(new Parameters())
->withAnyParameters()
->willReturn($this->mockStream);
$this->mockStream
@@ -480,7 +480,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
$this->mockStreamFactory
->expects($this->once())
->method('createStream')
->with(new Parameters())
->withAnyParameters()
->willReturn($this->mockStream);
$this->mockStream
@@ -503,7 +503,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
$this->mockStreamFactory
->expects($this->once())
->method('createStream')
->with(new Parameters())
->withAnyParameters()
->willReturn($this->mockStream);
$this->mockStream