@@ -155,6 +155,21 @@ public function testCheckAjaxReferer(): void
155155 );
156156 }
157157
158+ public function testDoAction (): void
159+ {
160+ $ this ->analyse (
161+ __DIR__ . '/data/param/do-action.php ' ,
162+ [
163+ ["Parameter #1 \$hook_name of function do_action expects non-empty-string, '' given. " , 8 ],
164+ ["Parameter #1 \$hook_name of function do_action_ref_array expects non-empty-string, '' given. " , 9 ],
165+ ["Parameter #1 \$hook_name of function do_action_deprecated expects non-empty-string, '' given. " , 10 ],
166+ ['Parameter #1 $hook_name of function do_action expects non-empty-string, string given. ' , 13 ],
167+ ['Parameter #1 $hook_name of function do_action_ref_array expects non-empty-string, string given. ' , 14 ],
168+ ['Parameter #1 $hook_name of function do_action_deprecated expects non-empty-string, string given. ' , 15 ],
169+ ]
170+ );
171+ }
172+
158173 public function testRegisterActivationHook (): void
159174 {
160175 $ this ->analyse (
@@ -177,21 +192,6 @@ public function testRegisterDeactivationHook(): void
177192 );
178193 }
179194
180- public function testDoAction (): void
181- {
182- $ this ->analyse (
183- __DIR__ . '/data/param/do-action.php ' ,
184- [
185- ["Parameter #1 \$hook_name of function do_action expects non-empty-string, '' given. " , 8 ],
186- ["Parameter #1 \$hook_name of function do_action_ref_array expects non-empty-string, '' given. " , 9 ],
187- ["Parameter #1 \$hook_name of function do_action_deprecated expects non-empty-string, '' given. " , 10 ],
188- ['Parameter #1 $hook_name of function do_action expects non-empty-string, string given. ' , 13 ],
189- ['Parameter #1 $hook_name of function do_action_ref_array expects non-empty-string, string given. ' , 14 ],
190- ['Parameter #1 $hook_name of function do_action_deprecated expects non-empty-string, string given. ' , 15 ],
191- ]
192- );
193- }
194-
195195 public function testRegisterNavMenus (): void
196196 {
197197 $ this ->analyse (
@@ -246,6 +246,21 @@ public function testWpdbGetRow(): void
246246 );
247247 }
248248
249+ public function testWpRobots (): void
250+ {
251+ $ this ->analyse (
252+ __DIR__ . '/data/param/wp-robots.php ' ,
253+ [
254+ ['Parameter #1 $robots of function wp_robots_max_image_preview_large expects array<string, bool|string>, array<string, int> given. ' , 16 ],
255+ ['Parameter #1 $robots of function wp_robots_no_robots expects array<string, bool|string>, array<string, int> given. ' , 17 ],
256+ ['Parameter #1 $robots of function wp_robots_noindex expects array<string, bool|string>, array<string, int> given. ' , 18 ],
257+ ['Parameter #1 $robots of function wp_robots_noindex_embeds expects array<string, bool|string>, array<string, int> given. ' , 19 ],
258+ ['Parameter #1 $robots of function wp_robots_noindex_search expects array<string, bool|string>, array<string, int> given. ' , 20 ],
259+ ['Parameter #1 $robots of function wp_robots_sensitive_page expects array<string, bool|string>, array<string, int> given. ' , 21 ],
260+ ]
261+ );
262+ }
263+
249264 public function testWpTriggerError (): void
250265 {
251266 $ this ->analyse (
0 commit comments