@@ -27,23 +27,23 @@ public function testFixerInterfaceProxy(): void
2727
2828 $ tokens = $ this ->createMock (Tokens::class);
2929 $ fixer
30- ->expects (self :: once ())
30+ ->expects ($ this -> once ())
3131 ->method ('isCandidate ' )
3232 ->with (self ::identicalTo ($ tokens ))
3333 ->willReturn ($ candidate = (bool ) \random_int (0 , 1 ))
3434 ;
3535 self ::assertSame ($ candidate , $ proxy ->isCandidate ($ tokens ));
3636
3737 $ fixer
38- ->expects (self :: once ())
38+ ->expects ($ this -> once ())
3939 ->method ('isRisky ' )
4040 ->willReturn ($ risky = (bool ) \random_int (0 , 1 ))
4141 ;
4242 self ::assertSame ($ risky , $ proxy ->isRisky ());
4343
4444 $ file = new SplFileInfo (__FILE__ );
4545 $ fixer
46- ->expects (self :: once ())
46+ ->expects ($ this -> once ())
4747 ->method ('fix ' )
4848 ->with (
4949 self ::identicalTo ($ file ),
@@ -53,7 +53,7 @@ public function testFixerInterfaceProxy(): void
5353 $ proxy ->fix ($ file , $ tokens );
5454
5555 $ fixer
56- ->expects (self :: once ())
56+ ->expects ($ this -> once ())
5757 ->method ('getName ' )
5858 ->willReturn ($ name = \uniqid ('_name ' ))
5959 ;
@@ -62,7 +62,7 @@ public function testFixerInterfaceProxy(): void
6262 self ::assertStringContainsString ($ name , $ proxyName );
6363
6464 $ fixer
65- ->expects (self :: once ())
65+ ->expects ($ this -> once ())
6666 ->method ('getPriority ' )
6767 ->willReturn ($ priority = \random_int (-100 , 100 ))
6868 ;
@@ -84,13 +84,13 @@ public function testGetDefinitionIsProxied(): void
8484 $ proxy = new PhpFileOnlyProxyFixer ($ fixer );
8585
8686 $ fixerDefinition = $ this ->createMock (FixerDefinitionInterface::class);
87- $ fixerDefinition ->expects (self :: once ())->method ('getSummary ' )->willReturn ($ summary = \uniqid ('summary ' ));
88- $ fixerDefinition ->expects (self :: once ())->method ('getCodeSamples ' )->willReturn ($ codeSamples = []);
89- $ fixerDefinition ->expects (self :: once ())->method ('getDescription ' )->willReturn ($ description = \uniqid ('description ' ));
90- $ fixerDefinition ->expects (self :: once ())->method ('getRiskyDescription ' )->willReturn ($ riskyDescription = \uniqid ('riskyDescription ' ));
87+ $ fixerDefinition ->expects ($ this -> once ())->method ('getSummary ' )->willReturn ($ summary = \uniqid ('summary ' ));
88+ $ fixerDefinition ->expects ($ this -> once ())->method ('getCodeSamples ' )->willReturn ($ codeSamples = []);
89+ $ fixerDefinition ->expects ($ this -> once ())->method ('getDescription ' )->willReturn ($ description = \uniqid ('description ' ));
90+ $ fixerDefinition ->expects ($ this -> once ())->method ('getRiskyDescription ' )->willReturn ($ riskyDescription = \uniqid ('riskyDescription ' ));
9191
9292 $ fixer
93- ->expects (self :: once ())
93+ ->expects ($ this -> once ())
9494 ->method ('getDefinition ' )
9595 ->willReturn ($ fixerDefinition )
9696 ;
@@ -112,7 +112,7 @@ public function testConfigureIsProxied(): void
112112 $ proxy = new PhpFileOnlyProxyFixer ($ fixer );
113113
114114 $ fixer
115- ->expects (self :: once ())
115+ ->expects ($ this -> once ())
116116 ->method ('configure ' )
117117 ->with (self ::identicalTo ($ configuration ))
118118 ;
@@ -128,7 +128,7 @@ public function testGetConfigurationDefinitionIsProxied(): void
128128
129129 $ definition = $ this ->createMock (FixerConfigurationResolverInterface::class);
130130 $ fixer
131- ->expects (self :: once ())
131+ ->expects ($ this -> once ())
132132 ->method ('getConfigurationDefinition ' )
133133 ->willReturn ($ definition )
134134 ;
@@ -144,7 +144,7 @@ public function testSetWhitespacesConfigIsProxied(): void
144144 $ proxy = new PhpFileOnlyProxyFixer ($ fixer );
145145
146146 $ fixer
147- ->expects (self :: once ())
147+ ->expects ($ this -> once ())
148148 ->method ('setWhitespacesConfig ' )
149149 ->with (self ::identicalTo ($ config ))
150150 ;
0 commit comments