public function ParserTest::testParserThrowsExceptionWithCorrectLineNumber in Loft Data Grids 7.2
@dataProvider parserThrowsExceptionWithCorrectLineNumberProvider
Parameters
$lineNumber:
$yaml:
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 1159
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testParserThrowsExceptionWithCorrectLineNumber($lineNumber, $yaml) {
if (method_exists($this, 'expectException')) {
$this
->expectException('\\Symfony\\Component\\Yaml\\Exception\\ParseException');
$this
->expectExceptionMessage(sprintf('Unexpected characters near "," at line %d (near "bar: "123",").', $lineNumber));
}
else {
$this
->setExpectedException('\\Symfony\\Component\\Yaml\\Exception\\ParseException', sprintf('Unexpected characters near "," at line %d (near "bar: "123",").', $lineNumber));
}
$this->parser
->parse($yaml);
}