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