public function testConstructorSetTypeDetectionMode($mode, $raw, $packed) { $this->assertSame($packed, (new Packer($mode))->pack($raw)); }