@@ -53,7 +53,7 @@ public static function browserProvider(): array
5353 /**
5454 * Selenium tests are flakey so add retries.
5555 */
56- public function retryTest ($ retryCount , $ test ): void
56+ public function retryTest (int $ retryCount , callable $ test ): void
5757 {
5858 // just like above without checking the annotation
5959 for ($ i = 0 ; $ i < $ retryCount ; $ i ++) {
@@ -74,12 +74,12 @@ public function retryTest($retryCount, $test): void
7474 * Run integration tests with browsers
7575 */
7676 #[dataProvider('browserProvider ' )]
77- public function testBrowsers ($ browserId , $ options ): void
77+ public function testBrowsers (string $ browserId , array $ options ): void
7878 {
7979 $ this ->retryTest (2 , $ this ->createClosureTest ($ browserId , $ options ));
8080 }
8181
82- protected function createClosureTest ($ browserId , $ options ): callable
82+ protected function createClosureTest (string $ browserId , array $ options ): callable
8383 {
8484 return function () use ($ browserId , $ options ): void {
8585 $ this ->webPush = new WebPush ($ options );
@@ -126,7 +126,6 @@ protected function createClosureTest($browserId, $options): callable
126126
127127 $ subscription = new Subscription ($ endpoint , $ p256dh , $ auth , $ contentEncoding );
128128 $ report = $ this ->webPush ->sendOneNotification ($ subscription , $ payload );
129- $ this ->assertInstanceOf (MessageSentReport::class, $ report );
130129 $ this ->assertTrue ($ report ->isSuccess ());
131130
132131 $ dataString = json_encode ([
@@ -158,7 +157,7 @@ protected function createClosureTest($browserId, $options): callable
158157 };
159158 }
160159
161- private function getResponse ($ ch )
160+ private function getResponse (CurlHandle $ ch ): mixed
162161 {
163162 $ resp = curl_exec ($ ch );
164163
0 commit comments