Lines Matching refs:Inline

16 use Symfony\Component\Yaml\Inline;  alias
24 Inline::initialize(0, 0);
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);
89 …$this->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an …
91 … $this->assertSame($value, Inline::parse(Inline::dump($value), $parseFlags), 'check consistency');
107 $this->assertEquals('1.2', Inline::dump(1.2));
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');
195 $this->assertSame($expect, Inline::parseScalar($value));
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));
293 $this->assertSame($expected, Inline::isHash($array));
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));
588 $this->assertSame($expected, Inline::dump($dateTime));
609 $this->assertSame('Hello world', Inline::parse($data));
633 Inline::parse($data);
652 Inline::parse('{this, is not, supported}');
659 $yamlString = Inline::dump(['longStringWithQuotes' => $longStringWithQuotes]);
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'");