@@ -142,7 +142,7 @@ public function doneShouldTriggerFatalErrorExceptionThrownByRejectionHandler()
142142 $ errors = $ errorCollector ->stop ();
143143
144144 self ::assertEquals (E_USER_ERROR , $ errors [0 ]['errno ' ]);
145- self ::assertContains ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
145+ self ::assertStringContainsString ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
146146 }
147147
148148 /** @test */
@@ -161,7 +161,7 @@ public function doneShouldTriggerFatalErrorRejectionExceptionWhenRejectionHandle
161161 $ errors = $ errorCollector ->stop ();
162162
163163 self ::assertEquals (E_USER_ERROR , $ errors [0 ]['errno ' ]);
164- self ::assertContains ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
164+ self ::assertStringContainsString ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
165165 }
166166
167167 /** @test */
@@ -184,7 +184,7 @@ public function doneShouldTriggerFatalErrorUnhandledRejectionExceptionWhenReject
184184 $ errors = $ errorCollector ->stop ();
185185
186186 self ::assertEquals (E_USER_ERROR , $ errors [0 ]['errno ' ]);
187- self ::assertContains ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
187+ self ::assertStringContainsString ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
188188 }
189189
190190 /** @test */
@@ -201,7 +201,7 @@ public function doneShouldTriggerFatalErrorExceptionProvidedAsRejectionValue()
201201 $ errors = $ errorCollector ->stop ();
202202
203203 self ::assertEquals (E_USER_ERROR , $ errors [0 ]['errno ' ]);
204- self ::assertContains ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
204+ self ::assertStringContainsString ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
205205 }
206206
207207 /** @test */
0 commit comments