@@ -44,45 +44,45 @@ public function testFactoryThrowsExceptionOnIncompatibleVersionId(): void
4444 public function testFactoryReturnsInstanceOfConfig (): void
4545 {
4646 $ config = Factory::create ($ this ->mockRuleset ())->forProjects ();
47- $ this -> assertInstanceOf ('PhpCsFixer\Config ' , $ config );
47+ self :: assertInstanceOf ('PhpCsFixer\Config ' , $ config );
4848
4949 $ config = Factory::create ($ this ->mockRuleset ())->forLibrary ('Library ' , 'John Doe ' , 'email ' , 2020 );
50- $ this -> assertInstanceOf ('PhpCsFixer\Config ' , $ config );
50+ self :: assertInstanceOf ('PhpCsFixer\Config ' , $ config );
5151 }
5252
5353 public function testFactoryPassesSameRulesFromRuleset (): void
5454 {
5555 $ ruleset = $ this ->mockRuleset ();
5656 $ config = Factory::create ($ ruleset )->forProjects ();
5757
58- $ this -> assertSame ($ ruleset ->getRules (), $ config ->getRules ());
58+ self :: assertSame ($ ruleset ->getRules (), $ config ->getRules ());
5959 }
6060
6161 public function testFactoryAllowsOverrideOfRules (): void
6262 {
6363 $ config = Factory::create (new Nexus73 ())->forProjects ();
64- $ this -> assertIsArray ($ config ->getRules ()['binary_operator_spaces ' ]);
64+ self :: assertIsArray ($ config ->getRules ()['binary_operator_spaces ' ]);
6565
6666 $ config = Factory::create (new Nexus73 (), [
6767 'binary_operator_spaces ' => false ,
6868 ])->forProjects ();
69- $ this -> assertFalse ($ config ->getRules ()['binary_operator_spaces ' ]);
69+ self :: assertFalse ($ config ->getRules ()['binary_operator_spaces ' ]);
7070 }
7171
7272 public function testFactoryReturnsDefaultOptionsWhenNoOptionsGiven (): void
7373 {
7474 $ config = Factory::create ($ this ->mockRuleset ())->forProjects ();
7575
76- $ this -> assertSame ('.php_cs.cache ' , $ config ->getCacheFile ());
77- $ this -> assertSame ([], $ config ->getCustomFixers ());
78- $ this -> assertInstanceOf ('PhpCsFixer\Finder ' , $ config ->getFinder ());
79- $ this -> assertSame ('txt ' , $ config ->getFormat ());
80- $ this -> assertFalse ($ config ->getHideProgress ());
81- $ this -> assertSame (' ' , $ config ->getIndent ());
82- $ this -> assertSame ("\n" , $ config ->getLineEnding ());
83- $ this -> assertNull ($ config ->getPhpExecutable ());
84- $ this -> assertIsBool ($ config ->getRiskyAllowed ());
85- $ this -> assertTrue ($ config ->getUsingCache ());
76+ self :: assertSame ('.php_cs.cache ' , $ config ->getCacheFile ());
77+ self :: assertSame ([], $ config ->getCustomFixers ());
78+ self :: assertInstanceOf ('PhpCsFixer\Finder ' , $ config ->getFinder ());
79+ self :: assertSame ('txt ' , $ config ->getFormat ());
80+ self :: assertFalse ($ config ->getHideProgress ());
81+ self :: assertSame (' ' , $ config ->getIndent ());
82+ self :: assertSame ("\n" , $ config ->getLineEnding ());
83+ self :: assertNull ($ config ->getPhpExecutable ());
84+ self :: assertIsBool ($ config ->getRiskyAllowed ());
85+ self :: assertTrue ($ config ->getUsingCache ());
8686 }
8787
8888 public function testFactoryConsumesPassedOptionsToIt (): void
@@ -98,22 +98,22 @@ public function testFactoryConsumesPassedOptionsToIt(): void
9898 ];
9999 $ config = Factory::create ($ this ->mockRuleset (), [], $ options )->forProjects ();
100100
101- $ this -> assertSame ($ options ['cacheFile ' ], $ config ->getCacheFile ());
102- $ this -> assertSame ($ options ['format ' ], $ config ->getFormat ());
103- $ this -> assertTrue ($ config ->getHideProgress ());
104- $ this -> assertSame ($ options ['indent ' ], $ config ->getIndent ());
105- $ this -> assertSame ($ options ['lineEnding ' ], $ config ->getLineEnding ());
106- $ this -> assertSame ($ options ['phpExecutable ' ], $ config ->getPhpExecutable ());
107- $ this -> assertFalse ($ config ->getUsingCache ());
101+ self :: assertSame ($ options ['cacheFile ' ], $ config ->getCacheFile ());
102+ self :: assertSame ($ options ['format ' ], $ config ->getFormat ());
103+ self :: assertTrue ($ config ->getHideProgress ());
104+ self :: assertSame ($ options ['indent ' ], $ config ->getIndent ());
105+ self :: assertSame ($ options ['lineEnding ' ], $ config ->getLineEnding ());
106+ self :: assertSame ($ options ['phpExecutable ' ], $ config ->getPhpExecutable ());
107+ self :: assertFalse ($ config ->getUsingCache ());
108108 }
109109
110110 public function testCreateForLibraryCreatesPreformattedLicense (): void
111111 {
112112 $ config = Factory::
create (
$ this ->
mockRuleset ())->
forLibrary (
'Library ' ,
'Foo Bar ' ,
'[email protected] ' ,
2020 );
113113 $ header = $ config ->getRules ()['header_comment ' ]['header ' ];
114114
115- $ this -> assertStringContainsString ('This file is part of Library. ' , $ header );
116- $ this -> assertStringContainsString (
'(c) 2020 Foo Bar <[email protected] > ' ,
$ header);
115+ self :: assertStringContainsString ('This file is part of Library. ' , $ header );
116+ self :: assertStringContainsString (
'(c) 2020 Foo Bar <[email protected] > ' ,
$ header);
117117 }
118118
119119 /**
0 commit comments