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