@@ -132,16 +132,16 @@ public function test_handle($status_code, $page_content)
132132 $ this ->user ->data ['is_bot ' ] = false ;
133133
134134 $ this ->language ->method ('lang ' )
135- ->will ( self :: returnArgument ( 0 ) );
135+ ->willReturnArgument ( 0 );
136136 $ this ->language ->method ('is_set ' )
137137 ->willReturn (true );
138138
139- $ this ->request ->expects (self :: once ())
139+ $ this ->request ->expects ($ this -> once ())
140140 ->method ('is_set_post ' )
141141 ->willReturn (false );
142142
143143 $ this ->request ->method ('variable ' )
144- ->with (self :: anything ())
144+ ->with ($ this -> anything ())
145145 ->willReturnMap ([
146146 ['vendor_name ' , '' , true , \phpbb \request \request_interface::REQUEST , 'foo ' ],
147147 ['author_name ' , ['' ], true , \phpbb \request \request_interface::REQUEST , ['bar ' ]],
@@ -150,13 +150,13 @@ public function test_handle($status_code, $page_content)
150150 ['component_phplistener ' , false , false , \phpbb \request \request_interface::REQUEST , true ],
151151 ]);
152152
153- $ this ->controller_helper ->expects (self :: once ())
153+ $ this ->controller_helper ->expects ($ this -> once ())
154154 ->method ('render ' )
155155 ->willReturnCallback (function ($ template_file , $ page_title = '' , $ status_code = 200 ) {
156156 return new \Symfony \Component \HttpFoundation \Response ($ template_file , $ status_code );
157157 });
158158
159- $ this ->template ->expects (self :: atLeastOnce ())
159+ $ this ->template ->expects ($ this -> atLeastOnce ())
160160 ->method ('assign_block_vars ' )
161161 ->withConsecutive (
162162 ['extension ' , [
@@ -254,9 +254,9 @@ public function test_handle($status_code, $page_content)
254254
255255 $ response = $ this ->get_controller ($ this ->packager )->handle ();
256256
257- self :: assertInstanceOf ('\Symfony\Component\HttpFoundation\Response ' , $ response );
258- self :: assertEquals ($ status_code , $ response ->getStatusCode ());
259- self :: assertEquals ($ page_content , $ response ->getContent ());
257+ $ this -> assertInstanceOf ('\Symfony\Component\HttpFoundation\Response ' , $ response );
258+ $ this -> assertEquals ($ status_code , $ response ->getStatusCode ());
259+ $ this -> assertEquals ($ page_content , $ response ->getContent ());
260260 }
261261
262262 /**
@@ -276,7 +276,7 @@ public function test_submit_success()
276276 {
277277 $ this ->user ->data ['is_bot ' ] = false ;
278278
279- $ this ->request ->expects (self :: once ())
279+ $ this ->request ->expects ($ this -> once ())
280280 ->method ('is_set_post ' )
281281 ->willReturn (true );
282282
@@ -289,15 +289,15 @@ public function test_submit_success()
289289 ['component_githubactions ' , true , false , \phpbb \request \request_interface::REQUEST , true ],
290290 ]);
291291
292- $ this ->packager_mock ->expects (self :: once ())
292+ $ this ->packager_mock ->expects ($ this -> once ())
293293 ->method ('get_composer_dialog_values ' )
294294 ->willReturn ([
295295 'author ' => ['author_name ' => null ],
296296 'extension ' => ['vendor_name ' => null ],
297297 'requirements ' => ['php_version ' => '>=5.4 ' ],
298298 ]);
299299
300- $ this ->packager_mock ->expects (self :: once ())
300+ $ this ->packager_mock ->expects ($ this -> once ())
301301 ->method ('get_component_dialog_values ' )
302302 ->willReturn ([
303303 'phplistener ' => [
@@ -323,35 +323,35 @@ public function test_submit_success()
323323
324324 $ response = $ this ->get_controller ($ this ->packager_mock )->handle ();
325325
326- self :: assertInstanceOf ('\Symfony\Component\HttpFoundation\Response ' , $ response );
326+ $ this -> assertInstanceOf ('\Symfony\Component\HttpFoundation\Response ' , $ response );
327327 }
328328
329329 public function test_submit_exception ()
330330 {
331331 $ this ->user ->data ['is_bot ' ] = false ;
332332
333- $ this ->request ->expects (self :: once ())
333+ $ this ->request ->expects ($ this -> once ())
334334 ->method ('is_set_post ' )
335335 ->with ('submit ' )
336336 ->willReturn (true );
337337
338338 $ this ->request ->method ('variable ' )
339- ->with (self :: anything ())
339+ ->with ($ this -> anything ())
340340 ->willReturnMap ([
341341 ['author_name ' , ['' ], true , \phpbb \request \request_interface::REQUEST , ['' ]],
342342 ['vendor_name ' , '' , true , \phpbb \request \request_interface::REQUEST , 'foo_vendor ' ],
343343 ['php_version ' , '>=5.4 ' , true , \phpbb \request \request_interface::REQUEST , '>=5.4 ' ],
344344 ]);
345345
346- $ this ->packager_mock ->expects (self :: atLeastOnce ())
346+ $ this ->packager_mock ->expects ($ this -> atLeastOnce ())
347347 ->method ('get_composer_dialog_values ' )
348348 ->willReturn ([
349349 'author ' => ['author_name ' => null ],
350350 'extension ' => ['vendor_name ' => null ],
351351 'requirements ' => ['php_version ' => '>=5.4 ' ],
352352 ]);
353353
354- $ this ->packager_mock ->expects (self :: atLeastOnce ())
354+ $ this ->packager_mock ->expects ($ this -> atLeastOnce ())
355355 ->method ('get_component_dialog_values ' )
356356 ->willReturn ([
357357 'phplistener ' => [
@@ -362,7 +362,7 @@ public function test_submit_exception()
362362 ],
363363 ]);
364364
365- $ this ->validator ->expects (self :: once ())
365+ $ this ->validator ->expects ($ this -> once ())
366366 ->method ('validate_vendor_name ' )
367367 ->with ('foo_vendor ' )
368368 ->willThrowException (new runtime_exception ('SKELETON_INVALID_VENDOR_NAME ' ));
0 commit comments