From 9149899ec5b4bd5d5d3f02f779344a651ae80751 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 13 Dec 2010 08:17:48 +0100 Subject: [PATCH] test for excellent connection --- tests/index_wstatus1-connected-excellent.phpt | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/index_wstatus1-connected-excellent.phpt diff --git a/tests/index_wstatus1-connected-excellent.phpt b/tests/index_wstatus1-connected-excellent.phpt new file mode 100644 index 0000000..363a940 --- /dev/null +++ b/tests/index_wstatus1-connected-excellent.phpt @@ -0,0 +1,21 @@ +--TEST-- +test Wrt3g_HtmlParser::index_wstatus1() when we have an excellent connection +--FILE-- +index_wstatus1( + file_get_contents('index_wstatus1-connected-excellent.htm') + ) +); +--EXPECT-- +array(3) { + ["type"]=> + string(8) "GPRS" + ["network"]=> + string(8) "BASE DE" + ["signal strength"]=> + string(8) "excellent" +} -- 2.30.2