public function testInt32BigEndianOutsideBuffer() { $this->resource = fopen(tempnam(sys_get_temp_dir(), 'binary'), 'a+'); $stream = new Stream($this->resource); $stream->writeInt32BE(2147483648); $stream->setPosition(0); $this->assertEquals(-2147483648, $stream->readInt32BE()); }