public function testRemoveLines()
 {
     $this->file->removeLines([0, 1]);
     unset($this->data[0]);
     unset($this->data[1]);
     $this->assertEquals(implode("\n", $this->data), $this->file->content());
 }
Beispiel #2
0
 public function removeAChunk($delimiter)
 {
     if ($this->getChunk($delimiter)) {
         unset($this->chunks[$delimiter]);
         $this->file->write(implode("\n", $this->chunks));
         $this->refreshAllLinesTextFileClassVariables();
     }
 }