1818
1919class DeclareStrictFirstLineFixerTest extends FixerTest
2020{
21- public function testFileWithoutDeclareIsUnchanged ()
21+ public function test_FileWithoutDeclare_IsUnchanged ()
2222 {
2323 $ code = <<<'CODE'
2424 <?php
@@ -27,10 +27,10 @@ public function testFileWithoutDeclareIsUnchanged()
2727
2828 CODE;
2929
30- $ this ->assertSame ($ code, $ this -> runner -> fix ( $ code ) );
30+ $ this ->assertUnchanged ($ code );
3131 }
3232
33- public function testFileWithDeclareInFirstLineIsUnchanged ()
33+ public function test_FileWithDeclareInFirstLine_IsUnchanged ()
3434 {
3535 $ code = <<<'CODE'
3636 <?php declare(strict_types=1);
@@ -39,10 +39,10 @@ public function testFileWithDeclareInFirstLineIsUnchanged()
3939
4040 CODE;
4141
42- $ this ->assertSame ($ code, $ this -> runner -> fix ( $ code ) );
42+ $ this ->assertUnchanged ($ code );
4343 }
4444
45- public function testFileWithDifferentDeclareIsUnchanged ()
45+ public function test_FileWithDifferentDeclare_IsUnchanged ()
4646 {
4747 $ code = <<<'CODE'
4848 <?php
@@ -52,10 +52,10 @@ public function testFileWithDifferentDeclareIsUnchanged()
5252
5353 CODE;
5454
55- $ this ->assertSame ($ code, $ this -> runner -> fix ( $ code ) );
55+ $ this ->assertUnchanged ($ code );
5656 }
5757
58- public function testDeclareNotInFirstLineIsMoved ()
58+ public function test_DeclareNotInFirstLine_IsMoved ()
5959 {
6060 $ code = <<<'CODE'
6161 <?php
@@ -72,10 +72,10 @@ public function testDeclareNotInFirstLineIsMoved()
7272
7373 CODE;
7474
75- $ this ->assertSame ( $ expected , $ this -> runner -> fix ( $ code ) );
75+ $ this ->assertFixed ( $ code , $ expected );
7676 }
7777
78- public function testDeclareNotInFirstLineIsMovedWIthFollowingWhitespace ()
78+ public function test_DeclareNotInFirstLine_IsMovedWIthFollowingWhitespace ()
7979 {
8080 $ code = <<<'CODE'
8181 <?php
@@ -95,7 +95,7 @@ public function testDeclareNotInFirstLineIsMovedWIthFollowingWhitespace()
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