You are here

public function DifferTest::diffProvider in Zircon Profile 8

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

File

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

Class

DifferTest

Namespace

SebastianBergmann\Diff

Code

public function diffProvider() {
  $serialized_arr = <<<EOL
a:1:{i:0;O:27:"SebastianBergmann\\Diff\\Diff":3:{s:33:"\0SebastianBergmann\\Diff\\Diff\0from";s:7:"old.txt";s:31:"\0SebastianBergmann\\Diff\\Diff\0to";s:7:"new.txt";s:35:"\0SebastianBergmann\\Diff\\Diff\0chunks";a:3:{i:0;O:28:"SebastianBergmann\\Diff\\Chunk":5:{s:35:"\0SebastianBergmann\\Diff\\Chunk\0start";i:1;s:40:"\0SebastianBergmann\\Diff\\Chunk\0startRange";i:3;s:33:"\0SebastianBergmann\\Diff\\Chunk\0end";i:1;s:38:"\0SebastianBergmann\\Diff\\Chunk\0endRange";i:4;s:35:"\0SebastianBergmann\\Diff\\Chunk\0lines";a:4:{i:0;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:1;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222111";}i:1;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"1111111";}i:2;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"1111111";}i:3;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"1111111";}}}i:1;O:28:"SebastianBergmann\\Diff\\Chunk":5:{s:35:"\0SebastianBergmann\\Diff\\Chunk\0start";i:5;s:40:"\0SebastianBergmann\\Diff\\Chunk\0startRange";i:10;s:33:"\0SebastianBergmann\\Diff\\Chunk\0end";i:6;s:38:"\0SebastianBergmann\\Diff\\Chunk\0endRange";i:8;s:35:"\0SebastianBergmann\\Diff\\Chunk\0lines";a:11:{i:0;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"1111111";}i:1;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"1111111";}i:2;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"1111111";}i:3;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:8:"+1121211";}i:4;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"1111111";}i:5;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:8:"-1111111";}i:6;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:8:"-1111111";}i:7;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:8:"-2222222";}i:8;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222222";}i:9;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222222";}i:10;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222222";}}}i:2;O:28:"SebastianBergmann\\Diff\\Chunk":5:{s:35:"\0SebastianBergmann\\Diff\\Chunk\0start";i:17;s:40:"\0SebastianBergmann\\Diff\\Chunk\0startRange";i:5;s:33:"\0SebastianBergmann\\Diff\\Chunk\0end";i:16;s:38:"\0SebastianBergmann\\Diff\\Chunk\0endRange";i:6;s:35:"\0SebastianBergmann\\Diff\\Chunk\0lines";a:7:{i:0;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222222";}i:1;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222222";}i:2;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222222";}i:3;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:8:"+2122212";}i:4;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222222";}i:5;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:7:"2222222";}i:6;O:27:"SebastianBergmann\\Diff\\Line":2:{s:33:"\0SebastianBergmann\\Diff\\Line\0type";i:3;s:36:"\0SebastianBergmann\\Diff\\Line\0content";s:0:"";}}}}}}
EOL;
  return array(
    array(
      "--- old.txt\t2014-11-04 08:51:02.661868729 +0300\n+++ new.txt\t2014-11-04 08:51:02.665868730 +0300\n@@ -1,3 +1,4 @@\n+2222111\n 1111111\n 1111111\n 1111111\n@@ -5,10 +6,8 @@\n 1111111\n 1111111\n 1111111\n +1121211\n 1111111\n -1111111\n -1111111\n -2222222\n 2222222\n 2222222\n 2222222\n@@ -17,5 +16,6 @@\n 2222222\n 2222222\n 2222222\n +2122212\n 2222222\n 2222222\n",
      unserialize($serialized_arr),
    ),
  );
}