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