public function testInt16LittleEndianOutsideBuffer() { $this->resource = fopen(tempnam(sys_get_temp_dir(), 'binary'), 'a+'); $stream = new Stream($this->resource); $stream->writeInt16LE(32768); $stream->setPosition(0); $this->assertEquals(-32768, $stream->readInt16LE()); }