@@ -164,7 +164,7 @@ public function testThrowingBufferCallback()
164
164
$ client = $ this ->getHttpClient (__FUNCTION__ );
165
165
166
166
$ response = $ client ->request ('GET ' , 'http://localhost:8057 ' , ['buffer ' => function () {
167
- throw new \Exception ('Boo ' );
167
+ throw new \Exception ('Boo. ' );
168
168
}]);
169
169
170
170
$ this ->assertSame (200 , $ response ->getStatusCode ());
@@ -646,7 +646,7 @@ public function testOnProgressCancel()
646
646
$ response = $ client ->request ('GET ' , 'http://localhost:8057/timeout-body ' , [
647
647
'on_progress ' => function ($ dlNow ) {
648
648
if (0 < $ dlNow ) {
649
- throw new \Exception ('Aborting the request ' );
649
+ throw new \Exception ('Aborting the request. ' );
650
650
}
651
651
},
652
652
]);
@@ -656,7 +656,7 @@ public function testOnProgressCancel()
656
656
}
657
657
$ this ->fail (ClientExceptionInterface::class.' expected ' );
658
658
} catch (TransportExceptionInterface $ e ) {
659
- $ this ->assertSame ('Aborting the request ' , $ e ->getPrevious ()->getMessage ());
659
+ $ this ->assertSame ('Aborting the request. ' , $ e ->getPrevious ()->getMessage ());
660
660
}
661
661
662
662
$ this ->assertNotNull ($ response ->getInfo ('error ' ));
@@ -670,7 +670,7 @@ public function testOnProgressError()
670
670
$ response = $ client ->request ('GET ' , 'http://localhost:8057/timeout-body ' , [
671
671
'on_progress ' => function ($ dlNow ) {
672
672
if (0 < $ dlNow ) {
673
- throw new \Error ('BUG ' );
673
+ throw new \Error ('BUG. ' );
674
674
}
675
675
},
676
676
]);
@@ -680,7 +680,7 @@ public function testOnProgressError()
680
680
}
681
681
$ this ->fail ('Error expected ' );
682
682
} catch (\Error $ e ) {
683
- $ this ->assertSame ('BUG ' , $ e ->getMessage ());
683
+ $ this ->assertSame ('BUG. ' , $ e ->getMessage ());
684
684
}
685
685
686
686
$ this ->assertNotNull ($ response ->getInfo ('error ' ));
0 commit comments