You are here

public function DifferTest::textProvider in Zircon Profile 8

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

File

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

Class

DifferTest

Namespace

SebastianBergmann\Diff

Code

public function textProvider() {
  return array(
    array(
      "--- Original\n+++ New\n@@ @@\n-a\n+b\n",
      'a',
      'b',
    ),
    array(
      "--- Original\n+++ New\n@@ @@\n-ba\n+bc\n",
      'ba',
      'bc',
    ),
    array(
      "--- Original\n+++ New\n@@ @@\n-ab\n+cb\n",
      'ab',
      'cb',
    ),
    array(
      "--- Original\n+++ New\n@@ @@\n-abc\n+adc\n",
      'abc',
      'adc',
    ),
    array(
      "--- Original\n+++ New\n@@ @@\n-ab\n+abc\n",
      'ab',
      'abc',
    ),
    array(
      "--- Original\n+++ New\n@@ @@\n-bc\n+abc\n",
      'bc',
      'abc',
    ),
    array(
      "--- Original\n+++ New\n@@ @@\n-abc\n+abbc\n",
      'abc',
      'abbc',
    ),
    array(
      "--- Original\n+++ New\n@@ @@\n-abcdde\n+abcde\n",
      'abcdde',
      'abcde',
    ),
  );
}