File tree 2 files changed +2
-31
lines changed
2 files changed +2
-31
lines changed Original file line number Diff line number Diff line change @@ -54,20 +54,6 @@ public function testFalseyBody()
54
54
$ this ->assertSame ('0 ' , (string )$ r ->getBody ());
55
55
}
56
56
57
- public function testConstructorDoesNotReadStreamBody ()
58
- {
59
- $ streamIsRead = false ;
60
- $ body = Http \FnStream::decorate (Http \stream_for ('' ), [
61
- '__toString ' => function () use (&$ streamIsRead ) {
62
- $ streamIsRead = true ;
63
- return '' ;
64
- }
65
- ]);
66
- $ r = new Request ('GET ' , '/ ' , [], $ body );
67
- $ this ->assertFalse ($ streamIsRead );
68
- $ this ->assertSame ($ body , $ r ->getBody ());
69
- }
70
-
71
57
public function testCapitalizesMethod ()
72
58
{
73
59
$ r = new Request ('get ' , '/ ' );
@@ -182,4 +168,4 @@ public function testAddsPortToHeaderAndReplacePreviousPort()
182
168
$ r = $ r ->withUri (new Uri ('http://foo.com:8125/bar ' ));
183
169
$ this ->assertEquals ('foo.com:8125 ' , $ r ->getHeaderLine ('host ' ));
184
170
}
185
- }
171
+ }
Original file line number Diff line number Diff line change @@ -34,21 +34,6 @@ public function testCanConstructWithStatusCode()
34
34
$ this ->assertSame ('Not Found ' , $ r ->getReasonPhrase ());
35
35
}
36
36
37
- public function testConstructorDoesNotReadStreamBody ()
38
- {
39
- $ streamIsRead = false ;
40
- $ body = Http \FnStream::decorate (Http \stream_for ('' ), [
41
- '__toString ' => function () use (&$ streamIsRead ) {
42
- $ streamIsRead = true ;
43
- return '' ;
44
- }
45
- ]);
46
-
47
- $ r = new Response (200 , [], $ body );
48
- $ this ->assertFalse ($ streamIsRead );
49
- $ this ->assertSame ($ body , $ r ->getBody ());
50
- }
51
-
52
37
public function testStatusCanBeNumericString ()
53
38
{
54
39
$ r = new Response ('404 ' );
@@ -252,4 +237,4 @@ public function testHeaderValuesAreTrimmed()
252
237
$ this ->assertSame (['Foo ' ], $ r ->getHeader ('OWS ' ));
253
238
}
254
239
}
255
- }
240
+ }
You can’t perform that action at this time.
0 commit comments