public function testTryUnpackTruncatesBuffer()
{
$this->unpacker->append("�");
$this->assertSame([true], $this->unpacker->tryUnpack());
try {
$this->unpacker->unpack();
} catch (InsufficientDataException $e) {
$this->assertSame('Not enough data to unpack: expected 1, got 0.', $e->getMessage());
return;
}
$this->fail('Buffer was not truncated.');
}