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 read(Closure $callback)
 {
     $this->callbackWithArgs($callback, [$this->file->content()]);
     return $this;
 }