Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ClientTest extends TestCase |
||
13 | { |
||
14 | private $client; |
||
15 | |||
16 | /** |
||
17 | * setUp |
||
18 | * |
||
19 | * @return void |
||
20 | */ |
||
21 | public function setUp() : void |
||
22 | { |
||
23 | $connector = \Mockery::mock(ClientRedisStreamPhpInterface::class); |
||
24 | $this->client = new Client($connector); |
||
|
|||
25 | } |
||
26 | |||
27 | /** |
||
28 | * test Stream |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function testStream() : void |
||
33 | { |
||
34 | $result = $this->client->stream('stream-name'); |
||
35 | |||
36 | $this->assertInstanceOf(Stream::class, $result); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * test Group |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function testGroup() : void |
||
49 | } |
||
50 | } |