4 <?php include "skipif.inc"; ?>
9 var_dump(new http\Message("GET HTTP/1.1"));
10 } catch (Exception $e) {
14 var_dump(new http\Message("GET HTTP/1.123"));
15 } catch (Exception $e) {
19 var_dump(new http\Message("GETHTTP/1.1"));
20 } catch (Exception $e) {
23 var_dump(new http\Message("GET / HTTP/1.1"));
27 exception 'http\Exception\BadMessageException' with message 'Could not parse message: GET HTTP/1.1' in %s
29 #0 %s: http\Message->__construct('GET HTTP/1.1')
31 exception 'http\Exception\BadMessageException' with message 'Could not parse message: GET HTTP/1.123' in %s
33 #0 %s: http\Message->__construct('GET HTTP/1.123')
35 exception 'http\Exception\BadMessageException' with message 'Could not parse message: GETHTTP/1.1' in %s
37 #0 %s: http\Message->__construct('GETHTTP/1.1')
39 object(http\Message)#%d (9) {
43 object(http\Message\Body)#%d (0) {
45 ["requestMethod":protected]=>
47 ["requestUrl":protected]=>
49 ["responseStatus":protected]=>
51 ["responseCode":protected]=>
53 ["httpVersion":protected]=>
55 ["headers":protected]=>
58 ["parentMessage":protected]=>