From 6470cd9c4fd41ae3c083c1b055edcd7636fb3957 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 13 Dec 2010 08:16:41 +0100 Subject: [PATCH] test for good connection --- tests/index_wstatus1-connected-good.phpt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/index_wstatus1-connected-good.phpt 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" +} -- 2.30.2