BrowscapTest\Parser\IniParserTest::testGetLinesFromFileThrowsExceptionIfFileDoesNotExist PHP Method

testGetLinesFromFileThrowsExceptionIfFileDoesNotExist() public method

tests throwing an exception if the input file does not exist
    public function testGetLinesFromFileThrowsExceptionIfFileDoesNotExist()
    {
        $file = '/hopefully/this/file/does/not/exist';
        $parser = new IniParser($file);
        $this->setExpectedException('\\InvalidArgumentException', 'File not found: ' . $file);
        $parser->getLinesFromFile();
    }