@@ -155,6 +155,28 @@ public function testCheckAjaxReferer(): void
155155 );
156156 }
157157
158+ public function testRegisterActivationHook (): void
159+ {
160+ $ this ->analyse (
161+ __DIR__ . '/data/param/register-activation-hook.php ' ,
162+ [
163+ ['Parameter #2 $callback of function register_activation_hook expects callable(bool): void, Closure(string): void given. ' , 10 ],
164+ ['Parameter #2 $callback of function register_activation_hook expects callable(bool): void, Closure(bool): int given. ' , 11 ],
165+ ]
166+ );
167+ }
168+
169+ public function testRegisterDeactivationHook (): void
170+ {
171+ $ this ->analyse (
172+ __DIR__ . '/data/param/register-deactivation-hook.php ' ,
173+ [
174+ ['Parameter #2 $callback of function register_deactivation_hook expects callable(bool): void, Closure(string): void given. ' , 10 ],
175+ ['Parameter #2 $callback of function register_deactivation_hook expects callable(bool): void, Closure(bool): int given. ' , 11 ],
176+ ]
177+ );
178+ }
179+
158180 public function testDoAction (): void
159181 {
160182 $ this ->analyse (
@@ -199,6 +221,17 @@ public function testRegisterPostType(): void
199221 );
200222 }
201223
224+ public function testRegisterUninstallHook (): void
225+ {
226+ $ this ->analyse (
227+ __DIR__ . '/data/param/register-uninstall-hook.php ' ,
228+ [
229+ ['Parameter #2 $callback of function register_uninstall_hook expects callable(): void, Closure(bool): void given. ' , 10 ],
230+ ['Parameter #2 $callback of function register_uninstall_hook expects callable(): void, Closure(): int given. ' , 11 ],
231+ ]
232+ );
233+ }
234+
202235 public function testWpdbGetRow (): void
203236 {
204237 $ this ->analyse (
0 commit comments