You are here

public function ParserTest::testParseInvalidBinaryData in Lockr 7.3

@dataProvider getInvalidBinaryData @expectedException \Symfony\Component\Yaml\Exception\ParseException

File

vendor/symfony/yaml/Tests/ParserTest.php, line 1486

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testParseInvalidBinaryData($data, $expectedMessage) {
  if (method_exists($this, 'expectException')) {
    $this
      ->expectExceptionMessageRegExp($expectedMessage);
  }
  else {
    $this
      ->setExpectedExceptionRegExp(ParseException::class, $expectedMessage);
  }
  $this->parser
    ->parse($data);
}