?>
DONE
--EXPECTF--
-exception 'http\Exception' with message 'could not parse message: GET HTTP/1.1' in %s
+exception 'http\Exception\BadMessageException' with message 'Could not parse message: GET HTTP/1.1' in %s
Stack trace:
#0 %s: http\Message->__construct('GET HTTP/1.1')
#1 {main}
-exception 'http\Exception' with message 'could not parse message: GET HTTP/1.123' in %s
+exception 'http\Exception\BadMessageException' with message 'Could not parse message: GET HTTP/1.123' in %s
Stack trace:
#0 %s: http\Message->__construct('GET HTTP/1.123')
#1 {main}
-exception 'http\Exception' with message 'could not parse message: GETHTTP/1.1' in %s
+exception 'http\Exception\BadMessageException' with message 'Could not parse message: GETHTTP/1.1' in %s
Stack trace:
#0 %s: http\Message->__construct('GETHTTP/1.1')
#1 {main}
-object(http\Message)#%d (10) {
- ["errorHandling":protected]=>
- NULL
+object(http\Message)#%d (9) {
["type":protected]=>
int(1)
["body":protected]=>
- object(http\Message\Body)#%d (1) {
- ["errorHandling":protected]=>
- NULL
+ object(http\Message\Body)#%d (0) {
}
["requestMethod":protected]=>
string(3) "GET"