File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -518,12 +518,12 @@ public function testUnconnectedClient(): void
518
518
public function testDeprecated (): void
519
519
{
520
520
$ client = new Client ('ws://localhost:8000/my/mock/path ' );
521
- (new ErrorHandler ())->with (function () use ($ client ) {
521
+ (new ErrorHandler ())->withAll (function () use ($ client ) {
522
522
$ this ->assertNull ($ client ->getPier ());
523
- }, function (ErrorException $ e ) {
523
+ }, function ($ exceptions , $ result ) {
524
524
$ this ->assertEquals (
525
525
'getPier() is deprecated and will be removed in future version. Use getRemoteName() instead. ' ,
526
- $ e ->getMessage ()
526
+ $ exceptions [ 0 ] ->getMessage ()
527
527
);
528
528
}, E_USER_DEPRECATED );
529
529
}
Original file line number Diff line number Diff line change @@ -499,12 +499,12 @@ public function testDeprecated(): void
499
499
MockSocket::initialize ('server.construct ' , $ this );
500
500
$ server = new Server ();
501
501
$ this ->assertTrue (MockSocket::isEmpty ());
502
- (new ErrorHandler ())->with (function () use ($ server ) {
502
+ (new ErrorHandler ())->withAll (function () use ($ server ) {
503
503
$ this ->assertNull ($ server ->getPier ());
504
- }, function (ErrorException $ e ) {
504
+ }, function ($ exceptions , $ result ) {
505
505
$ this ->assertEquals (
506
506
'getPier() is deprecated and will be removed in future version. Use getRemoteName() instead. ' ,
507
- $ e ->getMessage ()
507
+ $ exceptions [ 0 ] ->getMessage ()
508
508
);
509
509
}, E_USER_DEPRECATED );
510
510
}
You can’t perform that action at this time.
0 commit comments