BrowscapTest\Parser\IniParserTest::testParseThrowsExceptionWhenInvalidFormatting PHP Метод

testParseThrowsExceptionWhenInvalidFormatting() публичный Метод

tests throwing an exception if more than one eual sign is present in a line
    public function testParseThrowsExceptionWhenInvalidFormatting()
    {
        $lines = ['double=equals=here'];
        $parser = new IniParser('');
        $parser->setFileLines($lines);
        $this->setExpectedException('\\RuntimeException', 'Too many equals in line: double=equals=here');
        $parser->parse();
    }