From 046973e332c1475f9bf7717af9d33a75283deb37 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 12 Feb 2015 22:44:11 +0100 Subject: [PATCH] rename info tests --- tests/{info_001.phpt => info001.phpt} | 0 tests/info002.phpt | 49 +++++++++++++++++++++++++++ tests/{info.phpt => phpinfo.phpt} | 0 3 files changed, 49 insertions(+) rename tests/{info_001.phpt => info001.phpt} (100%) create mode 100644 tests/info002.phpt rename tests/{info.phpt => phpinfo.phpt} (100%) diff --git a/tests/info_001.phpt b/tests/info001.phpt similarity index 100% rename from tests/info_001.phpt rename to tests/info001.phpt diff --git a/tests/info002.phpt b/tests/info002.phpt new file mode 100644 index 0000000..41bd7b4 --- /dev/null +++ b/tests/info002.phpt @@ -0,0 +1,49 @@ +--TEST-- +invalid HTTP info +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +Test +exception 'http\Exception\BadMessageException' with message 'Could not parse message: HTTP/1.1 99 Apples in my ' in %sinfo002.php:%d +Stack trace: +#0 %sinfo002.php(%d): http\Message->__construct('HTTP/1.1 99 App...') +#1 %sinfo002.php(%d): {closure}() +#2 %sinfo002.php(%d): trap(Object(Closure)) +#3 {main} +exception 'http\Exception\BadMessageException' with message 'Could not parse message: CONNECT HTTP/1.1' in %sinfo002.php:%d +Stack trace: +#0 %sinfo002.php(%d): http\Message->__construct('CONNECT HTTP/1....') +#1 %sinfo002.php(%d): {closure}() +#2 %sinfo002.php(%d): trap(Object(Closure)) +#3 {main} +HTTP/1.1 200 +CONNECT www.example.org:80 HTTP/1.1 +===DONE=== diff --git a/tests/info.phpt b/tests/phpinfo.phpt similarity index 100% rename from tests/info.phpt rename to tests/phpinfo.phpt -- 2.30.2