|
@@ -97,7 +97,7 @@ discard block |
|
|
block discarded – undo |
|
97
|
97
|
{ |
|
98
|
98
|
$session = $this->getSession(); |
|
99
|
99
|
|
|
100
|
|
- $log = sprintf('Current page: %d %s', $this->getStatusCode($session), $this->getCurrentUrl($session)) . "\n"; |
|
|
100
|
+ $log = sprintf('Current page: %d %s', $this->getStatusCode($session), $this->getCurrentUrl($session))."\n"; |
|
101
|
101
|
$log .= $this->getResponseHeadersLogMessage($session); |
|
102
|
102
|
$log .= $this->getResponseContentLogMessage($session); |
|
103
|
103
|
|
|
@@ -192,7 +192,7 @@ discard block |
|
|
block discarded – undo |
|
192
|
192
|
private function getResponseHeadersLogMessage(Session $session) |
|
193
|
193
|
{ |
|
194
|
194
|
try { |
|
195
|
|
- return 'Response headers:' . "\n" . print_r($session->getResponseHeaders(), true) . "\n"; |
|
|
195
|
+ return 'Response headers:'."\n".print_r($session->getResponseHeaders(), true)."\n"; |
|
196
|
196
|
} catch (MinkException $exception) { |
|
197
|
197
|
return null; |
|
198
|
198
|
} catch (WebDriverException $exception) { |
|
@@ -208,7 +208,7 @@ discard block |
|
|
block discarded – undo |
|
208
|
208
|
private function getResponseContentLogMessage(Session $session) |
|
209
|
209
|
{ |
|
210
|
210
|
try { |
|
211
|
|
- return 'Response content:' . "\n" . $session->getPage()->getContent() . "\n"; |
|
|
211
|
+ return 'Response content:'."\n".$session->getPage()->getContent()."\n"; |
|
212
|
212
|
} catch (MinkException $exception) { |
|
213
|
213
|
return null; |
|
214
|
214
|
} catch (WebDriverException $exception) { |
Please login to merge, or discard this patch.