2
0
forked from Wavyzz/dolibarr

Safari can appear in iPad, iPod, iPhone and future Apple products, it is not fair to attach it to one of them.

This commit is contained in:
Marcos García de La Fuente
2015-02-23 10:42:10 +01:00
parent 102d2d9d36
commit 71b98ee82b
2 changed files with 7 additions and 2 deletions

View File

@@ -163,6 +163,12 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
$tmp=getBrowserInfo($user_agent);
$this->assertEquals('ie',$tmp['browsername']);
$this->assertEquals('11.0',$tmp['browserversion']);
//iPad
$user_agent = 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25';
$tmp=getBrowserInfo($user_agent);
$this->assertEquals('ie',$tmp['browsername']);
$this->assertEquals('11.0',$tmp['browserversion']);
}