See also: https://github.com/browscap/browscap-php
Author: Martin Keckeis (martin.keckeis1@gmail.com)
Inheritance: extends AbstractBrowscap
 public function testRealResultDevice()
 {
     $provider = new BrowscapFull($this->getParserWithWarmCache('full'));
     $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' => 'Blink', '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' => 'Smart TV', 'brand' => 'Samsung', 'type' => 'TV Device', 'isMobile' => null, 'isTouch' => null], 'bot' => ['isBot' => null, 'name' => null, 'type' => null]], $result->toArray());
     /*
      * Test the raw result
      */
     $rawResult = $result->getProviderResultRaw();
     $this->assertInstanceOf('stdClass', $rawResult);
     $this->assertCount(50, (array) $rawResult);
 }
 public function testDetectionCapabilities()
 {
     $provider = new BrowscapFull($this->getParser());
     $this->assertEquals(['browser' => ['name' => true, 'version' => true], 'renderingEngine' => ['name' => true, 'version' => true], 'operatingSystem' => ['name' => true, 'version' => true], 'device' => ['model' => true, 'brand' => true, 'type' => true, 'isMobile' => true, 'isTouch' => true], 'bot' => ['isBot' => true, 'name' => true, 'type' => true]], $provider->getDetectionCapabilities());
 }