コード例 #1
0
ファイル: ParserTest.php プロジェクト: crossjoin/browscap
 /**
  * @covers ::setSource
  *
  * @throws InvalidArgumentException
  * @throws ParserConfigurationException
  * @throws SourceUnavailableException
  * @throws UnexpectedValueException
  */
 public function testValidSource()
 {
     $iniFile = dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . 'lite_php_browscap.ini';
     $source = new File($iniFile);
     $parser = new Parser();
     $parser->setSource($source);
     static::assertSame($source, $parser->getSource());
 }