summaryrefslogtreecommitdiffstats
path: root/227f803c33aad0c004f77ca61815ee8e76d94788.patch
blob: 0b20914b22004fa57f6aed433f6d2ae6a6c8e59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Adapted for 7.3


From 227f803c33aad0c004f77ca61815ee8e76d94788 Mon Sep 17 00:00:00 2001
From: Sebastian Bergmann <sb@sebastian-bergmann.de>
Date: Mon, 28 May 2018 15:38:20 +0200
Subject: [PATCH] Make this code compatible with PHP 7.3.

See https://externals.io/message/102147 for details.
---
 tests/ParserTest.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/ParserTest.php b/tests/ParserTest.php
index a3667e3..4a4558d 100644
--- a/tests/ParserTest.php
+++ b/tests/ParserTest.php
@@ -74,7 +74,7 @@ final class ParserTest extends TestCase
 
     public function testParseWithRemovedLines()
     {
-        $content = <<<A
+        $content = <<<EOF
 diff --git a/Test.txt b/Test.txt
 index abcdefg..abcdefh 100644
 --- a/Test.txt
@@ -82,7 +82,7 @@ index abcdefg..abcdefh 100644
 @@ -49,9 +49,8 @@
  A
 -B
-A;
+EOF;
         $diffs = $this->parser->parse($content);
         $this->assertInternalType('array', $diffs);
         $this->assertContainsOnlyInstancesOf(Diff::class, $diffs);
@@ -117,7 +117,7 @@ A;
 
     public function testParseDiffForMulitpleFiles()
     {
-        $content = <<<A
+        $content = <<<EOF
 diff --git a/Test.txt b/Test.txt
 index abcdefg..abcdefh 100644
 --- a/Test.txt
@@ -133,7 +133,7 @@ index abcdefg..abcdefh 100644
 @@ -1,2 +1,3 @@
  A
 +B
-A;
+EOF;
         $diffs = $this->parser->parse($content);
         $this->assertCount(2, $diffs);