DiffFormatter example


  }

  /** * Tests whether op classes returned by DiffEngine::diff() match expectations. * * @covers ::format * @dataProvider provideTestDiff */
  public function testDiff($expected$from$to) {
    $diff = new Diff($from$to);
    $formatter = new DiffFormatter();
    $output = $formatter->format($diff);
    $this->assertEquals($expected$output);
  }

}
Home | Imprint | This part of the site doesn't use cookies.