Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function it_should_set_custom_serializer() |
||
15 | { |
||
16 | $redis = $this->createConnection('phpredis', [ |
||
17 | 'default' => [ |
||
18 | 'serializer' => 'igbinary', |
||
19 | ], |
||
20 | ]); |
||
21 | $client = $redis->connection()->client(); |
||
22 | |||
23 | $data = ['name' => 'Georgia']; |
||
24 | $redis->set('country', $data, null, 60); |
||
25 | |||
26 | $this->assertEquals($client->getOption(self::PHPREDIS_OPT_SERIALIZER), self::PHPREDIS_SERIALIZER_IGBINARY); |
||
27 | $this->assertEquals($redis->get('country'), $data); |
||
28 | } |
||
29 | |||
52 |