Exemplo n.º 1
0
 public function testBinaryStreamsShouldAllowWritingUtf8()
 {
     $string = str_repeat('赵勇', 1000);
     $stream = new Util\BinaryStream('');
     $stream->writeLongUtf($string);
     $test = $stream->getStream();
     $this->assertContains($string, $test);
 }