setFileLines() public méthode

public setFileLines ( array $fileLines )
$fileLines array
Exemple #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();
 }