@@ -55,7 +55,7 @@ public static function browserProvider(): array
5555 /**
5656 * Selenium tests are flakey so add retries.
5757 */
58- public function retryTest ($ retryCount , $ test ): void
58+ public function retryTest (int $ retryCount , callable $ test ): void
5959 {
6060 // just like above without checking the annotation
6161 for ($ i = 0 ; $ i < $ retryCount ; $ i ++) {
@@ -76,12 +76,12 @@ public function retryTest($retryCount, $test): void
7676 * Run integration tests with browsers
7777 */
7878 #[dataProvider('browserProvider ' )]
79- public function testBrowsers ($ browserId , $ options ): void
79+ public function testBrowsers (string $ browserId , array $ options ): void
8080 {
8181 $ this ->retryTest (2 , $ this ->createClosureTest ($ browserId , $ options ));
8282 }
8383
84- protected function createClosureTest ($ browserId , $ options ): callable
84+ protected function createClosureTest (string $ browserId , array $ options ): callable
8585 {
8686 return function () use ($ browserId , $ options ): void {
8787 $ this ->webPush = new WebPush ($ options );
@@ -128,7 +128,6 @@ protected function createClosureTest($browserId, $options): callable
128128
129129 $ subscription = new Subscription ($ endpoint , $ p256dh , $ auth , $ contentEncoding );
130130 $ report = $ this ->webPush ->sendOneNotification ($ subscription , $ payload );
131- $ this ->assertInstanceOf (MessageSentReport::class, $ report );
132131 $ this ->assertTrue ($ report ->isSuccess ());
133132
134133 $ dataString = json_encode ([
@@ -160,7 +159,7 @@ protected function createClosureTest($browserId, $options): callable
160159 };
161160 }
162161
163- private function getResponse ($ ch )
162+ private function getResponse (CurlHandle $ ch ): mixed
164163 {
165164 $ resp = curl_exec ($ ch );
166165
0 commit comments