public function ParserTest::testParserThrowsExceptionWithCorrectLineNumber in Lockr 7.3
@dataProvider parserThrowsExceptionWithCorrectLineNumberProvider
Parameters
$lineNumber:
$yaml:
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 1557
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);
}