Example #1
0
 public function it_adds_1_to_modified_line_number_and_inserts()
 {
     $original = new OriginalLineNumber(3);
     $modified = new ModifiedLineNumber(8);
     $final = new LineNumber(9);
     $lines = array('lines');
     $this->lineTracker->trackLine($original)->shouldBeCalled()->willReturn($modified);
     $this->modified->insert($final, $lines)->shouldBeCalled();
     $this->lineTracker->addLines(Argument::any())->willReturn();
     $this->append($original, $lines);
 }
Example #2
0
 private function insertAtLineNumber(LineNumber $lineNumber, array $lines)
 {
     $this->modified->insert($lineNumber, $lines);
     $this->lineTracker->addLines($this->calculateInsertRange($lineNumber, $lines));
 }