You are here

public function InlineTest::testParseInvalidBinaryData in Lockr 7.3

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

File

vendor/symfony/yaml/Tests/InlineTest.php, line 698

Class

InlineTest

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);
  }
  Inline::parse($data);
}