Lines Matching refs:parse

32 …$this->assertSame($value, Inline::parse($yaml, $flags), sprintf('::parse() converts an inline YAML…
40 $actual = Inline::parse($yaml, $flags);
50 $actual = Inline::parse($yaml, Yaml::PARSE_CONSTANT);
72 Inline::parse('!php/const WRONG_CONSTANT', Yaml::PARSE_CONSTANT);
81 Inline::parse('!php/const PHP_INT_MAX', Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
91 … $this->assertSame($value, Inline::parse(Inline::dump($value), $parseFlags), 'check consistency');
118 $this->assertSame($value, Inline::parse(Inline::dump($value)));
127 Inline::parse('"Foo\Var"');
135 Inline::parse('"Foo\\"');
144 Inline::parse($value);
153 Inline::parse($value);
162 Inline::parse($value);
171 Inline::parse('{foo:""}');
179 Inline::parse('[foo] bar');
187 Inline::parse('{ foo: bar } bar');
203 $this->assertSame($expected, Inline::parse($yaml, 0, ['var' => 'var-value']));
227 $this->assertSame([$foo], Inline::parse('[*foo]', 0, ['foo' => $foo]));
236 Inline::parse('{ foo: * }');
245 Inline::parse('{ foo: * #foo }');
260 Inline::parse(sprintf('{ foo: %sfoo }', $indicator));
280 Inline::parse(sprintf('{ foo: %sfoo }', $indicator));
539 … $this->assertSame(gmmktime($hour, $minute, $second, $month, $day, $year), Inline::parse($yaml));
552 $date = Inline::parse($yaml, Yaml::PARSE_DATETIME);
580 $this->assertEquals($expectedNested, Inline::parse($yamlNested, Yaml::PARSE_DATETIME));
609 $this->assertSame('Hello world', Inline::parse($data));
633 Inline::parse($data);
652 Inline::parse('{this, is not, supported}');
660 $arrayFromYaml = Inline::parse($yamlString);
671 Inline::parse('{: foo}');
679 $this->assertSame($expected, Inline::parse($yaml));
692 $this->assertSame(['' => 'foo'], Inline::parse('{ "": foo }'));
703 $this->assertSame($expected, Inline::parse($yaml));
718 $value = Inline::parse('[!foo]', Yaml::PARSE_CUSTOM_TAGS);
727 $value = Inline::parse('[!foo ""]', Yaml::PARSE_CUSTOM_TAGS);
736 $value = Inline::parse('{foo: !bar}', Yaml::PARSE_CUSTOM_TAGS);
745 $value = Inline::parse('{foo: !bar ""}', Yaml::PARSE_CUSTOM_TAGS);
758 Inline::parse("{abc: 'def'");