}
}
+ if (preg_match('/Capture\\(share.firmwarever\\):(.+?)</', $body, $arMatches)) {
+ $arRaw['router firmware'] = trim($arMatches[1]);
+ }
+
return $arRaw;
}
}
\ No newline at end of file
)
);
--EXPECT--
-array(10) {
+array(11) {
["connection"]=>
string(10) "connecting"
["type"]=>
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"
}
\ No newline at end of file
)
);
--EXPECT--
-array(10) {
+array(11) {
["connection"]=>
string(9) "connected"
["type"]=>
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"
}
\ No newline at end of file
)
);
--EXPECT--
-array(10) {
+array(11) {
["connection"]=>
string(9) "connected"
["type"]=>
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"
}
\ No newline at end of file