Skip to content

Commit 1e8b87c

Browse files
committed
tests: added test connect without set protocol (using default)
1 parent ff572f6 commit 1e8b87c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/system/Session/Handlers/Database/RedisHandlerTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,19 @@ public function testOpen()
117117
$this->assertTrue($handler->open($this->sessionSavePath, $this->sessionName));
118118
}
119119

120+
public function testOpenWithDefaultProtocol()
121+
{
122+
$default = $this->sessionSavePath;
123+
124+
$this->sessionSavePath = '127.0.0.1:6379';
125+
126+
$handler = $this->getInstance();
127+
$this->assertTrue($handler->open($this->sessionSavePath, $this->sessionName));
128+
129+
// Rollback to default
130+
$this->sessionSavePath = $default;
131+
}
132+
120133
public function testWrite()
121134
{
122135
$handler = $this->getInstance();

0 commit comments

Comments
 (0)