You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class BasicTest extends PHPUnit_Framework_TestCase {
3
3
4
+
protectedfunctionsetUp(){
5
+
6
+
$this->detect = newMobile_Detect;
7
+
8
+
}
9
+
4
10
publicfunctiontestClassExists(){
5
11
6
-
$detect = newMobile_Detect;
7
12
$this->assertTrue(class_exists('Mobile_Detect'));
8
13
9
14
}
10
15
16
+
publicfunctiontestBasicMethods(){
17
+
18
+
$this->detect->setUserAgent('Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A523 Safari/8536.25');
0 commit comments