We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce6eca commit f008f36Copy full SHA for f008f36
tests/Integration/TestCase.php
@@ -41,12 +41,14 @@ final protected function getClient() : Client
41
return $this->client = Client::fromDefaults();
42
}
43
44
- if (0 === strpos($uri, '/') || 0 === strpos($uri, 'unix/:')) {
+ if (0 === strpos($uri, '/')) {
45
+ $dsn = 'unix://'.$uri;
46
+ } elseif (0 === strpos($uri, 'unix/:')) {
47
$dsn = 'unix://'.substr($uri, 6);
48
} elseif (ctype_digit($uri)) {
- $dsn = "tcp://127.0.0.1:$uri";
49
+ $dsn = 'tcp://127.0.0.1:'.$uri;
50
} else {
- $dsn = "tcp://$uri";
51
+ $dsn = 'tcp://'.$uri;
52
53
54
return $this->client = Client::fromDsn($dsn);
0 commit comments