From c4e540f1b918ba8411b139afae0f24153809bd7f Mon Sep 17 00:00:00 2001 From: Brown Date: Mon, 29 Oct 2018 15:28:17 -0400 Subject: [PATCH] Add more commonly-applicable test --- tests/FileDiffTest.php | 76 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/tests/FileDiffTest.php b/tests/FileDiffTest.php index 828624ac1..1939f1f78 100644 --- a/tests/FileDiffTest.php +++ b/tests/FileDiffTest.php @@ -690,12 +690,23 @@ class FileDiffTest extends TestCase namespace Foo; class A { + /** + * @return void + */ public function foo() { $a = 1; } + + /** + * @return void + */ public function bar() { $b = 1; } + + /** + * @return void + */ public function bat() { $c = 1; } @@ -704,9 +715,16 @@ class FileDiffTest extends TestCase namespace Foo; class A { + /** + * @return void + */ public function foo() { $a = 1; } + + /** + * @return void + */ public function bar() { $b = 1; } @@ -979,9 +997,16 @@ class FileDiffTest extends TestCase namespace Foo; class A { + /** + * @return void + */ public function foo() { $a = 1; } + + /** + * @return void + */ public function bar() { $b = 1; } @@ -990,12 +1015,23 @@ class FileDiffTest extends TestCase namespace Foo; class A { + /** + * @return void + */ public function foo() { $a = 1; } + + /** + * @return void + */ public function bar() { $b = 1; } + + /** + * @return void + */ public function bat() { $c = 1; } @@ -1010,9 +1046,16 @@ class FileDiffTest extends TestCase namespace Foo; class A { + /** + * @return void + */ public function foo() { $a = 1; } + + /** + * @return void + */ public function bar() { $b = 1; } @@ -1021,12 +1064,23 @@ class FileDiffTest extends TestCase namespace Foo; class A { + /** + * @return void + */ public function bat() { $c = 1; } + + /** + * @return void + */ public function foo() { $a = 1; } + + /** + * @return void + */ public function bar() { $b = 1; } @@ -1034,16 +1088,23 @@ class FileDiffTest extends TestCase ['foo\a::foo', 'foo\a::bar'], [], ['foo\a::bat'], - [[98, 3], [98, 3]] + [[183, 7], [183, 7]] ], 'newFunctionInMiddle' => [ ' [ '