예제 #1
0
 public function testSymbian1()
 {
     $s = 'Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaC6-00/20.0.042; ' . 'Profile/MIDP-2.1 Configuration/CLDC-1.1; zh-hk) ' . 'AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.2.6.9 3gpp-gba';
     $b = HttpUserAgent::getBrowser($s);
     $this->assertEquals(true, HttpUserAgent::isSymbian($s));
     $this->assertEquals(true, HttpUserAgent::isMobile($s));
     $this->assertEquals(false, HttpUserAgent::isDesktop($s));
 }