@@ -27,7 +27,7 @@ public function test_FileWithoutDeclare_IsUnchanged()
2727
2828 CODE;
2929
30- $ this ->assertSame ($ code, $ this -> runner -> fix ( $ code ) );
30+ $ this ->assertUnchanged ($ code );
3131 }
3232
3333 public function test_FileWithDeclareInFirstLine_IsUnchanged ()
@@ -39,7 +39,7 @@ public function test_FileWithDeclareInFirstLine_IsUnchanged()
3939
4040 CODE;
4141
42- $ this ->assertSame ($ code, $ this -> runner -> fix ( $ code ) );
42+ $ this ->assertUnchanged ($ code );
4343 }
4444
4545 public function test_FileWithDifferentDeclare_IsUnchanged ()
@@ -52,7 +52,7 @@ public function test_FileWithDifferentDeclare_IsUnchanged()
5252
5353 CODE;
5454
55- $ this ->assertSame ($ code, $ this -> runner -> fix ( $ code ) );
55+ $ this ->assertUnchanged ($ code );
5656 }
5757
5858 public function test_DeclareNotInFirstLine_IsMoved ()
@@ -72,7 +72,7 @@ public function test_DeclareNotInFirstLine_IsMoved()
7272
7373 CODE;
7474
75- $ this ->assertSame ( $ expected , $ this -> runner -> fix ( $ code ) );
75+ $ this ->assertFixed ( $ code , $ expected );
7676 }
7777
7878 public function test_DeclareNotInFirstLine_IsMovedWIthFollowingWhitespace ()
@@ -95,7 +95,7 @@ public function test_DeclareNotInFirstLine_IsMovedWIthFollowingWhitespace()
9595
9696 CODE;
9797
98- $ this ->assertSame ( $ expected , $ this -> runner -> fix ( $ code ) );
98+ $ this ->assertFixed ( $ code , $ expected );
9999 }
100100
101101 protected function fixer (): FixerInterface
0 commit comments