RedisStoreTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A must_instantiate_with_a_valid_connection() 0 5 1
1
<?php
2
3
namespace Zenstruck\Governator\Tests\Unit\Store;
4
5
use PHPUnit\Framework\TestCase;
6
use Zenstruck\Governator\Store\RedisStore;
7
8
/**
9
 * @author Kevin Bond <[email protected]>
10
 */
11
final class RedisStoreTest extends TestCase
12
{
13
    /**
14
     * @test
15
     */
16
    public function must_instantiate_with_a_valid_connection(): void
17
    {
18
        $this->expectException(\InvalidArgumentException::class);
19
20
        new RedisStore(new \stdClass());
21
    }
22
}
23