@@ -94,7 +94,7 @@ public function testCachePage(): void
9494 $ this ->controller = new Controller ();
9595 $ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
9696
97- $ method = $ this -> getPrivateMethodInvoker ($ this ->controller , 'cachePage ' );
97+ $ method = self :: getPrivateMethodInvoker ($ this ->controller , 'cachePage ' );
9898 $ this ->assertNull ($ method (10 ));
9999 }
100100
@@ -105,7 +105,7 @@ public function testValidate(): void
105105 $ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
106106
107107 // and that we can attempt validation, with no rules
108- $ method = $ this -> getPrivateMethodInvoker ($ this ->controller , 'validate ' );
108+ $ method = self :: getPrivateMethodInvoker ($ this ->controller , 'validate ' );
109109 $ this ->assertFalse ($ method ([]));
110110 }
111111
@@ -117,7 +117,7 @@ public function testValidateWithStringRulesNotFound(): void
117117 $ this ->controller = new Controller ();
118118 $ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
119119
120- $ method = $ this -> getPrivateMethodInvoker ($ this ->controller , 'validate ' );
120+ $ method = self :: getPrivateMethodInvoker ($ this ->controller , 'validate ' );
121121 $ this ->assertFalse ($ method ('signup ' ));
122122 }
123123
@@ -146,7 +146,7 @@ public function testValidateWithStringRulesFoundReadMessagesFromValidationConfig
146146 $ this ->controller = new Controller ();
147147 $ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
148148
149- $ method = $ this -> getPrivateMethodInvoker ($ this ->controller , 'validate ' );
149+ $ method = self :: getPrivateMethodInvoker ($ this ->controller , 'validate ' );
150150 $ this ->assertFalse ($ method ('signup ' ));
151151 $ this ->assertSame ('You must choose a username. ' , service ('validation ' )->getError ('username ' ));
152152 }
@@ -167,7 +167,7 @@ public function testValidateWithStringRulesFoundUseMessagesParameter(): void
167167 $ this ->controller = new Controller ();
168168 $ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
169169
170- $ method = $ this -> getPrivateMethodInvoker ($ this ->controller , 'validate ' );
170+ $ method = self :: getPrivateMethodInvoker ($ this ->controller , 'validate ' );
171171 $ this ->assertFalse ($ method ('signup ' , [
172172 'username ' => [
173173 'required ' => 'You must choose a username. ' ,
@@ -182,7 +182,7 @@ public function testValidateData(): void
182182 $ this ->controller = new Controller ();
183183 $ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
184184
185- $ method = $ this -> getPrivateMethodInvoker ($ this ->controller , 'validateData ' );
185+ $ method = self :: getPrivateMethodInvoker ($ this ->controller , 'validateData ' );
186186
187187 $ data = [
188188 'username ' => 'mike ' ,
@@ -205,7 +205,7 @@ public function testValidateDataWithCustomErrorMessage(): void
205205 $ this ->controller = new Controller ();
206206 $ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
207207
208- $ method = $ this -> getPrivateMethodInvoker ($ this ->controller , 'validateData ' );
208+ $ method = self :: getPrivateMethodInvoker ($ this ->controller , 'validateData ' );
209209
210210 $ data = [
211211 'username ' => 'a ' ,
@@ -238,7 +238,7 @@ public function testValidateDataWithCustomErrorMessageLabeledStyle(): void
238238 $ this ->controller = new Controller ();
239239 $ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
240240
241- $ method = $ this -> getPrivateMethodInvoker ($ this ->controller , 'validateData ' );
241+ $ method = self :: getPrivateMethodInvoker ($ this ->controller , 'validateData ' );
242242
243243 $ data = [
244244 'username ' => 'a ' ,
0 commit comments