@@ -142,7 +142,7 @@ public function doneShouldTriggerFatalErrorExceptionThrownByRejectionHandler()
142
142
$ errors = $ errorCollector ->stop ();
143
143
144
144
self ::assertEquals (E_USER_ERROR , $ errors [0 ]['errno ' ]);
145
- self ::assertContains ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
145
+ self ::assertStringContainsString ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
146
146
}
147
147
148
148
/** @test */
@@ -161,7 +161,7 @@ public function doneShouldTriggerFatalErrorRejectionExceptionWhenRejectionHandle
161
161
$ errors = $ errorCollector ->stop ();
162
162
163
163
self ::assertEquals (E_USER_ERROR , $ errors [0 ]['errno ' ]);
164
- self ::assertContains ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
164
+ self ::assertStringContainsString ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
165
165
}
166
166
167
167
/** @test */
@@ -184,7 +184,7 @@ public function doneShouldTriggerFatalErrorUnhandledRejectionExceptionWhenReject
184
184
$ errors = $ errorCollector ->stop ();
185
185
186
186
self ::assertEquals (E_USER_ERROR , $ errors [0 ]['errno ' ]);
187
- self ::assertContains ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
187
+ self ::assertStringContainsString ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
188
188
}
189
189
190
190
/** @test */
@@ -201,7 +201,7 @@ public function doneShouldTriggerFatalErrorExceptionProvidedAsRejectionValue()
201
201
$ errors = $ errorCollector ->stop ();
202
202
203
203
self ::assertEquals (E_USER_ERROR , $ errors [0 ]['errno ' ]);
204
- self ::assertContains ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
204
+ self ::assertStringContainsString ('Unhandled Rejection ' , $ errors [0 ]['errstr ' ]);
205
205
}
206
206
207
207
/** @test */
0 commit comments