diff --git a/tests/ProtocolStreamWriterTest.php b/tests/ProtocolStreamWriterTest.php new file mode 100644 index 0000000..90ef32d --- /dev/null +++ b/tests/ProtocolStreamWriterTest.php @@ -0,0 +1,30 @@ + str_repeat('X', 100000)])); + $msgString = (string)$msg; + + $writer->write($msg); + + fclose($writeHandle); + + $this->assertEquals(strlen($msgString), filesize($tmpfile)); + } +}