Example #1
0
 public function testCreatingAnalyserSetData()
 {
     $analyser = new Analyser("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; InfoPath.1)");
     $this->assertTrue($analyser instanceof \WhichBrowser\Analyser);
     $input = new Main();
     $this->assertTrue($input instanceof \WhichBrowser\Model\Main);
     $analyser->setData($input);
     $analyser->analyse();
     $output = $analyser->getData();
     $this->assertTrue($output instanceof \WhichBrowser\Model\Main);
 }