public function testInt32LittleEndianOutsideBuffer() { $this->resource = fopen(tempnam(sys_get_temp_dir(), 'binary'), 'a+'); $stream = new Stream($this->resource); $stream->writeInt32LE(2147483647); $stream->setPosition(0); $this->assertEquals(2147483647, $stream->readInt32LE()); }