public function testShouldReadAndWriteToRedisWithPrefix($key, $data) { $object = new Redis(['host' => TEST_RS_HOST, 'prefix' => 'test_']); $object->write($key, $data); $this->assertEquals($data, $object->read($key)); }