public function testUInt8OutsideBufferTwice() { $this->resource = fopen(tempnam(sys_get_temp_dir(), 'binary'), 'a+'); $stream = new Stream($this->resource); $stream->writeUInt8(513); $stream->setPosition(0); $this->assertEquals(1, $stream->readUInt8()); }