示例#1
0
 public function testBinaryStreamsShouldAllowWritingUtf8()
 {
     $string = str_repeat('赵勇', 1000);
     $stream = new BinaryStream('');
     $stream->writeLongUtf($string);
     $test = $stream->getStream();
     $this->assertContains($string, $test);
 }
示例#2
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct('');
 }