RedisDriverTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetClient() 0 6 1
1
<?php
2
3
namespace SfCod\SocketIoBundle\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
use Predis\Client;
7
use SfCod\SocketIoBundle\Service\RedisDriver;
8
9
/**
10
 * Class RedisDriverTest.
11
 *
12
 * @author Virchenko Maksim <[email protected]>
13
 *
14
 * @package SfCod\SocketIoBundle\Tests
15
 */
16
class RedisDriverTest extends TestCase
17
{
18
    /**
19
     * Test redis client.
20
     */
21
    public function testGetClient()
22
    {
23
        $driver = new RedisDriver('redis://localhost:6379');
24
25
        $this->assertInstanceOf(Client::class, $driver->getClient());
26
    }
27
}
28