You are here

public function InlineTest::getTestsForNullValues in Database Sanitize 7

File

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

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function getTestsForNullValues() {
  return array(
    'null before closing curly brace' => array(
      '{foo:}',
      array(
        'foo' => null,
      ),
    ),
    'null before comma' => array(
      '{foo:, bar: baz}',
      array(
        'foo' => null,
        'bar' => 'baz',
      ),
    ),
  );
}