예제 #1
0
echo implode(', ', \DeviceDetector\Parser\Client\MediaPlayer::getAvailableClients());
?>


### 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)
 {
     $PIMParser = new PIM();
     $PIMParser->setUserAgent($useragent);
     $this->assertEquals($client, $PIMParser->parse());
 }