예제 #1
0

### List of detected mobile apps:

<?php 
echo implode(', ', \DeviceDetector\Parser\Client\MobileApp::getAvailableClients());
?>
  and *mobile apps using [AFNetworking](https://github.com/AFNetworking/AFNetworking)*


### List of detected PIMs (personal information manager):

<?php 
echo implode(', ', \DeviceDetector\Parser\Client\PIM::getAvailableClients());
?>


### List of detected feed readers:

<?php 
echo implode(', ', \DeviceDetector\Parser\Client\FeedReader::getAvailableClients());
?>


### List of brands with detected devices:

<?php 
echo implode(', ', \DeviceDetector\Parser\Device\DeviceParserAbstract::$deviceBrands);
?>

예제 #2
0
 /**
  * @dataProvider getFixtures
  */
 public function testParse($useragent, $client)
 {
     $feedReaderParser = new FeedReader();
     $feedReaderParser->setUserAgent($useragent);
     $this->assertEquals($client, $feedReaderParser->parse());
 }