From: Christian Weiske Date: Mon, 13 Dec 2010 07:16:41 +0000 (+0100) Subject: test for good connection X-Git-Tag: 1.0.0~55 X-Git-Url: https://git.cweiske.de/linksys-wrt3g-tools.git/commitdiff_plain/6470cd9c4fd41ae3c083c1b055edcd7636fb3957 test for good connection --- diff --git a/tests/index_wstatus1-connected-good.phpt b/tests/index_wstatus1-connected-good.phpt new file mode 100644 index 0000000..a78bcc9 --- /dev/null +++ b/tests/index_wstatus1-connected-good.phpt @@ -0,0 +1,21 @@ +--TEST-- +test Wrt3g_HtmlParser::index_wstatus1() when we have a good connection +--FILE-- +index_wstatus1( + file_get_contents('index_wstatus1-connected-good.htm') + ) +); +--EXPECT-- +array(3) { + ["type"]=> + string(8) "GPRS" + ["network"]=> + string(8) "BASE DE" + ["signal strength"]=> + string(8) "good" +}