another test
authorChristian Weiske <cweiske@cweiske.de>
Wed, 15 Dec 2010 07:13:16 +0000 (08:13 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 15 Dec 2010 07:13:16 +0000 (08:13 +0100)
tests/status_noauth-connected-2.htm [moved from tests/Status_NoAuth-2.htm with 100% similarity]
tests/status_noauth-connected-2.phpt [new file with mode: 0644]

diff --git a/tests/status_noauth-connected-2.phpt b/tests/status_noauth-connected-2.phpt
new file mode 100644 (file)
index 0000000..f238267
--- /dev/null
@@ -0,0 +1,38 @@
+--TEST--
+test Wrt3g_HtmlParser::status_noauth() when we have a good connection
+--FILE--
+<?php
+chdir(dirname(__FILE__));
+require_once dirname(__FILE__) . '/../Wrt3g/HtmlParser.php';
+$p = new Wrt3g_HtmlParser();
+var_dump(
+    $p->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