public function testStreamMethods() { # Reads stream position when stream has been closed $file = new File($this->filename); $file->closeStream(); $this->assertEquals(false, $file->getStreamPosition()); # Reads stream read with offset $file = new File($this->filename); $this->assertEquals('IER G', $file->getStream(5, 5)); # Tests empty error $this->assertEquals(false, $file->getError()); }
/** * Closes the File read * */ protected function closeStream() { $this->file->closeStream(); }