aboutsummaryrefslogtreecommitdiff
path: root/tests/status_noauth-aquiring.phpt
blob: 627c9e633a17de9dc3c8fb5c8033bf144872e9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--TEST--
test Wrt3g_HtmlParser::status_noauth() when we have no conection
--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-aquiring.htm')
    )
);
--EXPECT--
array(11) {
  ["connection"]=>
  string(10) "connecting"
  ["type"]=>
  NULL
  ["network"]=>
  NULL
  ["signal strength"]=>
  NULL
  ["connection time"]=>
  NULL
  ["session usage"]=>
  NULL
  ["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"
  ["router firmware"]=>
  string(11) "v2.01.03-EM"
}