You are here

public function DifferTest::testParser in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/diff/tests/DifferTest.php \SebastianBergmann\Diff\DifferTest::testParser()

*

Parameters

string $diff: * @param array $expected * @dataProvider diffProvider * @covers SebastianBergmann\Diff\Parser::parse

File

vendor/sebastian/diff/tests/DifferTest.php, line 112

Class

DifferTest

Namespace

SebastianBergmann\Diff

Code

public function testParser($diff, $expected) {
  $parser = new Parser();
  $result = $parser
    ->parse($diff);
  $this
    ->assertEquals($expected, $result);
}