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