Lines Matching refs:yaml
30 public function testParse($yaml, $value, $flags = 0) argument
32 …sertSame($value, Inline::parse($yaml, $flags), sprintf('::parse() converts an inline YAML to a PHP…
38 public function testParseWithMapObjects($yaml, $value, $flags = Yaml::PARSE_OBJECT_FOR_MAP) argument
40 $actual = Inline::parse($yaml, $flags);
48 public function testParsePhpConstants($yaml, $value) argument
50 $actual = Inline::parse($yaml, Yaml::PARSE_CONSTANT);
87 public function testDump($yaml, $value, $parseFlags = 0) argument
89 …$this->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an …
201 public function testParseReferences($yaml, $expected) argument
203 $this->assertSame($expected, Inline::parse($yaml, 0, ['var' => 'var-value']));
537 …public function testParseTimestampAsUnixTimestampByDefault($yaml, $year, $month, $day, $hour, $min… argument
539 … $this->assertSame(gmmktime($hour, $minute, $second, $month, $day, $year), Inline::parse($yaml));
545 …public function testParseTimestampAsDateTimeObject($yaml, $year, $month, $day, $hour, $minute, $se… argument
547 $expected = new \DateTime($yaml);
552 $date = Inline::parse($yaml, Yaml::PARSE_DATETIME);
570 …public function testParseNestedTimestampListAsDateTimeObject($yaml, $year, $month, $day, $hour, $m… argument
572 $expected = new \DateTime($yaml);
578 $yamlNested = "{nested: [$yaml]}";
677 public function testParseMissingMappingValueAsNull($yaml, $expected) argument
679 $this->assertSame($expected, Inline::parse($yaml));
701 public function testImplicitStringCastingOfMappingKeysIsDeprecated($yaml, $expected) argument
703 $this->assertSame($expected, Inline::parse($yaml));