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