@@ 136-146 (lines=11) @@ | ||
133 | ); |
|
134 | } |
|
135 | ||
136 | public function testStreamHttpClientHandlerCanBeForced() |
|
137 | { |
|
138 | $config = array_merge($this->config, [ |
|
139 | 'http_client_handler' => 'stream' |
|
140 | ]); |
|
141 | $fb = new Facebook($config); |
|
142 | $this->assertInstanceOf( |
|
143 | 'Facebook\HttpClients\FacebookStreamHttpClient', |
|
144 | $fb->getClient()->getHttpClientHandler() |
|
145 | ); |
|
146 | } |
|
147 | ||
148 | public function testGuzzleHttpClientHandlerCanBeForced() |
|
149 | { |
|
@@ 148-158 (lines=11) @@ | ||
145 | ); |
|
146 | } |
|
147 | ||
148 | public function testGuzzleHttpClientHandlerCanBeForced() |
|
149 | { |
|
150 | $config = array_merge($this->config, [ |
|
151 | 'http_client_handler' => 'guzzle' |
|
152 | ]); |
|
153 | $fb = new Facebook($config); |
|
154 | $this->assertInstanceOf( |
|
155 | 'Facebook\HttpClients\FacebookGuzzleHttpClient', |
|
156 | $fb->getClient()->getHttpClientHandler() |
|
157 | ); |
|
158 | } |
|
159 | ||
160 | /** |
|
161 | * @expectedException \InvalidArgumentException |
|
@@ 171-181 (lines=11) @@ | ||
168 | new Facebook($config); |
|
169 | } |
|
170 | ||
171 | public function testPersistentDataHandlerCanBeForced() |
|
172 | { |
|
173 | $config = array_merge($this->config, [ |
|
174 | 'persistent_data_handler' => 'memory' |
|
175 | ]); |
|
176 | $fb = new Facebook($config); |
|
177 | $this->assertInstanceOf( |
|
178 | 'Facebook\PersistentData\FacebookMemoryPersistentDataHandler', |
|
179 | $fb->getRedirectLoginHelper()->getPersistentDataHandler() |
|
180 | ); |
|
181 | } |
|
182 | ||
183 | public function testSettingAnInvalidUrlHandlerThrows() |
|
184 | { |