Esempio n. 1
0
 /**
  * @test
  */
 public function getUnreadBytesIsValidCount()
 {
     $count = 10;
     $this->_serverStream->write($this->_testString);
     $this->_clientStream->read($count);
     $this->assertEquals(strlen($this->_testString) - $count, $this->_clientStream->getUnreadBytes());
 }