From c7c7e457770500e088b23c824c74c4f73c3e9c3d Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Thu, 29 Sep 2016 23:20:10 +0200 Subject: [PATCH] Added ProtocolStreamWriter test --- tests/ProtocolStreamWriterTest.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/ProtocolStreamWriterTest.php 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)); + } +}