public function replaceALine($lineNumber, $line) { if ($this->file->getLine($lineNumber)) { $lines = $this->file->getAllLines(); $lines[$lineNumber] = $line; $this->file->write(implode("\n", $lines)); $this->refreshAllLinesTextFileClassVariables(); } }
public function testGetAllLines() { $this->assertEquals($this->data, $this->file->getAllLines()); }