See also: https://github.com/browscap/browscap-php
Author: Martin Keckeis (martin.keckeis1@gmail.com)
Inheritance: extends AbstractBrowscap
 public function testDetectionCapabilities()
 {
     $provider = new BrowscapLite($this->getParser());
     $this->assertEquals(['browser' => ['name' => true, 'version' => true], 'renderingEngine' => ['name' => false, 'version' => false], 'operatingSystem' => ['name' => true, 'version' => false], 'device' => ['model' => false, 'brand' => false, 'type' => true, 'isMobile' => true, 'isTouch' => false], 'bot' => ['isBot' => false, 'name' => false, 'type' => false]], $provider->getDetectionCapabilities());
 }
 public function testRealResultDevice()
 {
     $provider = new BrowscapLite($this->getParserWithWarmCache('lite'));
     $result = $provider->parse('Mozilla/5.0 (SMART-TV; X11; Linux armv7l) AppleWebkit/537.42 (KHTML, like Gecko) Chromium/48.0.1349.2 Chrome/25.0.1349.2 Safari/537.42');
     $this->assertEquals(['browser' => ['name' => 'Chromium', 'version' => ['major' => 48, 'minor' => null, 'patch' => null, 'alias' => null, 'complete' => '48.0']], 'renderingEngine' => ['name' => null, 'version' => ['major' => null, 'minor' => null, 'patch' => null, 'alias' => null, 'complete' => null]], 'operatingSystem' => ['name' => 'Linux', 'version' => ['major' => null, 'minor' => null, 'patch' => null, 'alias' => null, 'complete' => null]], 'device' => ['model' => null, 'brand' => null, 'type' => 'TV Device', 'isMobile' => null, 'isTouch' => null], 'bot' => ['isBot' => null, 'name' => null, 'type' => null]], $result->toArray());
 }