| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 77 | public function testReadStream() : void |
||
| 78 | { |
||
| 79 | $data = [ |
||
| 80 | [ |
||
| 81 | 'name', |
||
| 82 | [ |
||
| 83 | [ |
||
| 84 | 'id', |
||
| 85 | 'key', |
||
| 86 | 'body' |
||
| 87 | ] |
||
| 88 | ] |
||
| 89 | ] |
||
| 90 | ]; |
||
| 91 | |||
| 92 | $this->client->shouldReceive('rawCommand')->andReturn($data); |
||
| 93 | |||
| 94 | $stream = new Stream($this->client, self::TEST_NAME_STREAM); |
||
| 95 | |||
| 96 | $collectionStream = $stream->get(); |
||
| 97 | |||
| 98 | $this->assertEquals(Collection::create($data), $collectionStream); |
||
| 99 | |||
| 101 | } |