File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -752,7 +752,7 @@ public function testIdnStaysTheSameWhenConversionIsDisabled()
752752
753753 /**
754754 * @expectedException \GuzzleHttp\Exception\InvalidArgumentException
755- * @expectedExceptionMessage IDN conversion failed (errors: IDNA_ERROR_LEADING_HYPHEN)
755+ * @expectedExceptionMessage IDN conversion failed
756756 */
757757 public function testExceptionOnInvalidIdn ()
758758 {
Original file line number Diff line number Diff line change @@ -126,21 +126,6 @@ public function testExceptionMessageIgnoresEmptyBody()
126126 self ::assertStringEndsWith ('response ' , $ e ->getMessage ());
127127 }
128128
129- public function testCreatesExceptionWithoutPrintableBody ()
130- {
131- $ response = new Response (
132- 500 ,
133- ['Content-Type ' => 'image/gif ' ],
134- $ content = base64_decode ('R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 ' ) // 1x1 gif
135- );
136- $ e = RequestException::create (new Request ('GET ' , '/ ' ), $ response );
137- self ::assertNotContains (
138- $ content ,
139- $ e ->getMessage ()
140- );
141- self ::assertInstanceOf ('GuzzleHttp\Exception\RequestException ' , $ e );
142- }
143-
144129 public function testHasStatusCodeAsExceptionCode ()
145130 {
146131 $ e = RequestException::create (new Request ('GET ' , '/ ' ), new Response (442 ));
You can’t perform that action at this time.
0 commit comments