| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 51 | public function testAddDataToStream() : void |
||
| 52 | { |
||
| 53 | $key = 'name'; |
||
| 54 | |||
| 55 | $values = [ |
||
| 56 | 'id' => 123, |
||
| 57 | 'name' => 'Barney', |
||
| 58 | 'age' => 25, |
||
| 59 | ]; |
||
| 60 | |||
| 61 | $this->client->shouldReceive('rawCommand')->andReturn($key); |
||
| 62 | |||
| 63 | $this->stream = new Stream($this->client, self::TEST_NAME_STREAM); |
||
|
|
|||
| 64 | |||
| 65 | $result = $this->stream->add($key, $values); |
||
| 66 | |||
| 67 | $this->assertEquals($key, $result); |
||
| 68 | } |
||
| 101 | } |