parse() public method

public parse ( ) : array
return array
示例#1
0
 /**
  * tests throwing an exception if more than one eual sign is present in a line
  *
  * @group parser
  * @group sourcetest
  */
 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();
 }