read()) !== null) { $buffer .= $chunk; } $this->assertSame(\file_get_contents($file1), $buffer); }); } public function testInvalidEncoding() { $this->expectException(StreamException::class); new ZlibInputStream(new InMemoryStream(""), 1337); } }