Completed
Pull Request — master (#7)
by
unknown
07:59
created

RedisDriverTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

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