@@ 63-71 (lines=9) @@ | ||
60 | $this->assertEquals($myHeaders, $headers); |
|
61 | } |
|
62 | ||
63 | public function testCanSetTheHeadersFromAString() |
|
64 | { |
|
65 | $response = new GraphRawResponse($this->fakeRawHeader, ''); |
|
66 | $headers = $response->getHeaders(); |
|
67 | $httpResponseCode = $response->getHttpResponseCode(); |
|
68 | ||
69 | $this->assertEquals($this->fakeHeadersAsArray, $headers); |
|
70 | $this->assertEquals(200, $httpResponseCode); |
|
71 | } |
|
72 | ||
73 | public function testWillIgnoreProxyHeaders() |
|
74 | { |
|
@@ 73-81 (lines=9) @@ | ||
70 | $this->assertEquals(200, $httpResponseCode); |
|
71 | } |
|
72 | ||
73 | public function testWillIgnoreProxyHeaders() |
|
74 | { |
|
75 | $response = new GraphRawResponse($this->fakeRawProxyHeader . $this->fakeRawHeader, ''); |
|
76 | $headers = $response->getHeaders(); |
|
77 | $httpResponseCode = $response->getHttpResponseCode(); |
|
78 | ||
79 | $this->assertEquals($this->fakeHeadersAsArray, $headers); |
|
80 | $this->assertEquals(200, $httpResponseCode); |
|
81 | } |
|
82 | } |
|
83 |