public function writeAfter($lineNumber, $newContent) { $this->file->writeAfter($lineNumber, $newContent); $this->refreshAllLinesTextFileClassVariables(); return $this; }
public function testWriteAfter() { $this->file->writeAfter(0, "appended text after line 1"); $this->data[0] .= "\nappended text after line 1"; $this->assertEquals(implode("\n", $this->data), $this->file->content()); }