From: Christian Weiske Date: Fri, 17 Dec 2010 07:53:48 +0000 (+0100) Subject: test for index_wstatus2 in disconnected state X-Git-Tag: 1.0.0~17 X-Git-Url: https://git.cweiske.de/linksys-wrt3g-tools.git/commitdiff_plain/0f92c156212e32beb269055165cb77f1f8a1d5bf test for index_wstatus2 in disconnected state --- diff --git a/tests/index_wstatus2-disconnected.phpt b/tests/index_wstatus2-disconnected.phpt new file mode 100644 index 0000000..e547e61 --- /dev/null +++ b/tests/index_wstatus2-disconnected.phpt @@ -0,0 +1,17 @@ +--TEST-- +test Wrt3g_HtmlParser::index_wstatus1() when we have an excellent connection +--FILE-- +index_wstatus2( + file_get_contents('index_wstatus2-disconnected.htm') + ) +); +--EXPECT-- +array(1) { + ["connection"]=> + string(12) "disconnected" +}