/** * @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()); }