From: Christian Weiske Date: Wed, 15 Dec 2010 07:13:16 +0000 (+0100) Subject: another test X-Git-Tag: 1.0.0~41 X-Git-Url: https://git.cweiske.de/linksys-wrt3g-tools.git/commitdiff_plain/8dd8a8d5acc07f73353ec9c0d6d5ae091295b206 another test --- diff --git a/tests/Status_NoAuth-2.htm b/tests/status_noauth-connected-2.htm similarity index 100% rename from tests/Status_NoAuth-2.htm rename to tests/status_noauth-connected-2.htm diff --git a/tests/status_noauth-connected-2.phpt b/tests/status_noauth-connected-2.phpt new file mode 100644 index 0000000..f238267 --- /dev/null +++ b/tests/status_noauth-connected-2.phpt @@ -0,0 +1,38 @@ +--TEST-- +test Wrt3g_HtmlParser::status_noauth() when we have a good connection +--FILE-- +status_noauth( + file_get_contents('status_noauth-connected-2.htm') + ) +); +--EXPECT-- +array(9) { + ["type"]=> + string(4) "UMTS" + ["network"]=> + string(7) "BASE DE" + ["signal strength"]=> + string(9) "excellent" + ["connection time"]=> + string(11) "32h 26m 51s" + ["session usage"]=> + array(2) { + ["received"]=> + string(11) "7.57 Mbytes" + ["sent"]=> + string(11) "2.23 Mbytes" + } + ["card model"]=> + string(29) "GlobeTrotter Fusion Quad Lite" + ["card revision"]=> + string(3) "4.1" + ["card firmware"]=> + string(42) "1.5.5 (Date: May 17 2005, Time: 14:55:44)" + ["IMSI"]=> + string(15) "262032010984707" +} \ No newline at end of file