assertEquals(-1, PhpType::bytes2signedInt(array_slice(self::DATA, 0, 2))); $this->assertEquals(-1, PhpType::bytes2signedInt(array_slice(self::DATA, 0, 4))); $this->assertEquals(0, PhpType::bytes2signedInt(array_slice(self::DATA, 4, 4))); $this->assertEquals(1, PhpType::bytes2signedInt(array_slice(self::DATA, 8, 4))); $this->assertEquals(-2147483648, PhpType::bytes2signedInt(array_slice(self::DATA, 12, 4))); $this->assertEquals(2147483647, PhpType::bytes2signedInt(array_slice(self::DATA, 16, 4))); } }