public function testConvertComplementIntZeroViaUnpack() { $int = (int) 0; $packed = pack('N', $int); $unpacked = unpack('N', $packed); $unpacked = reset($unpacked); $this->assertSame($int, $unpacked); $this->assertSame($int, OrientDBCommandAbstract::convertComplementInt($unpacked)); }