Пример #1
0
 private function insertAtLineNumber(LineNumber $lineNumber, array $lines)
 {
     $this->modified->insert($lineNumber, $lines);
     $this->lineTracker->addLines($this->calculateInsertRange($lineNumber, $lines));
 }
Пример #2
0
 public function it_is_modified_if_contents_of_buffers_do_not_match()
 {
     $this->original->getContents()->willReturn(array('a'));
     $this->modified->getContents()->willReturn(array('b'));
     $this->shouldBeModified();
 }