示例#1
0
文件: StreamTest.php 项目: rusnak/Ext
 /**
  * @test
  */
 public function getUnreadBytesIsValidCount()
 {
     $count = 10;
     $this->_serverStream->write($this->_testString);
     $this->_clientStream->read($count);
     $this->assertEquals(strlen($this->_testString) - $count, $this->_clientStream->getUnreadBytes());
 }