Lines Matching refs:parser
23 protected $parser; variable in Symfony\\Component\\Yaml\\Tests\\ParserTest
27 $this->parser = new Parser();
32 $this->parser = null;
42 $this->assertEquals($expected, var_export($this->parser->parse($yaml), true), $comment);
67 $content = $this->parser->parse($yaml);
85 $this->assertEquals('foo', $this->parser->parse($yaml));
400 $this->assertSame($expected, $this->parser->parse($yaml));
421 $this->assertSame($expected, $this->parser->parse($yaml));
430 …$this->assertEquals(['foo' => new B(), 'bar' => 1], $this->parser->parse($input, Yaml::PARSE_OBJEC…
439 …$this->assertEquals(['foo' => null, 'bar' => 1], $this->parser->parse($input), '->parse() does not…
449 $this->assertEquals($expected, $this->parser->parse($yaml, $flags));
525 $this->parser->parse($yaml, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
536 $this->assertSame($expected, $this->parser->parse($yaml));
552 $this->parser->parse($yaml);
575 $this->parser->parse($yaml);
591 $this->parser->parse($yaml);
653 $this->assertSame($expected, $this->parser->parse($yaml));
672 $this->assertSame($expected, $this->parser->parse($yaml));
693 $this->assertSame($expected, $this->parser->parse($yaml));
728 $this->parser->parse($yaml);
743 $this->assertSame($expected, $this->parser->parse($yaml));
754 $this->assertSame($expected, $this->parser->parse($yaml));
1060 $this->assertEquals(['foo' => 1, 'bar' => 2], $this->parser->parse($yaml));
1075 $this->parser->parse($yaml);
1089 $this->parser->parse($yaml);
1114 $this->assertEquals($expected, $this->parser->parse($yaml));
1127 $this->parser->parse($yaml);
1137 $this->assertSame(['foo' => ['bar' => 'foobar']], $this->parser->parse($yaml));
1145 $this->assertSame($expectedParserResult, $this->parser->parse($yaml));
1294 $this->parser->parse($yaml)
1321 $this->parser->parse($yaml)
1330 $this->assertSame(['data' => 'Hello world'], $this->parser->parse($data));
1366 $this->parser->parse($data);
1421 … $this->assertEquals(['date' => $expectedDate], $this->parser->parse($yaml, Yaml::PARSE_DATETIME));
1438 $this->parser->parse($yaml);
1504 … $this->assertSame(['foo' => 'bar baz foobar foo', 'bar' => 'baz'], $this->parser->parse($yaml));
1515 $this->assertSame(['foobar' => 'foobar'], $this->parser->parse($yaml));
1533 $this->assertSame($expected, $this->parser->parse($yaml));
1547 $this->assertSame($expected, $this->parser->parse($yaml));
1560 … $this->assertSame(['foo' => 'bar baz foobar foo', 'bar' => 'baz'], $this->parser->parse($yaml));
1565 $this->assertEquals("foo bar\nbaz", $this->parser->parse("foo\nbar\n\nbaz"));
1573 $this->assertEquals($expected, $this->parser->parse($yaml));
1637 …$this->assertEquals(new TaggedValue('foo', ['foo' => 'bar']), $this->parser->parse('!foo {foo: bar…
1645 $this->assertEquals($expected, $this->parser->parse($yaml, Yaml::PARSE_CUSTOM_TAGS));
1696 $this->assertSame('12', $this->parser->parse('! 12'));
1705 $this->parser->parse('!iterator [foo]');
1714 $this->parser->parse('!iterator foo');
1723 $this->parser->parse('!!iterator foo');
1732 $this->parser->parse('!!foo');
1747 $this->parser->parse($yaml);
1763 $this->parser->parse($yaml);
1778 $this->parser->parse($yaml);
1793 $this->parser->parse($ini);
1798 $parser = new Parser();
1801 $files = $parser->parseFile(__DIR__.'/Fixtures/'.$testsFile);
1811 $test = $parser->parse($yaml);
1831 $arrayFromYaml = $this->parser->parse($yamlString);
1848 $this->parser->parse($yaml);
1854 $this->parser->parse($yaml);
1877 $this->assertSame($expected, $this->parser->parse($yaml, Yaml::PARSE_CONSTANT));
1914 $this->assertEquals($expected, $this->parser->parse($yaml, Yaml::PARSE_OBJECT_FOR_MAP));
1921 $this->assertSame($file, $this->parser->parse($file));
1926 $this->assertInternalType('array', $this->parser->parseFile(__DIR__.'/Fixtures/index.yml'));
1935 $this->parser->parseFile(__DIR__.'/Fixtures/nonexistent.yml');
1955 $this->parser->parseFile($file);
1983 $this->assertSame($expected, $this->parser->parse($yaml));
2011 $this->assertEquals($expected, $this->parser->parse($yaml, Yaml::PARSE_OBJECT_FOR_MAP));
2023 $this->parser->parse($yaml);
2033 $this->parser->parse($yaml, Yaml::PARSE_CUSTOM_TAGS);
2073 $this->assertSame($expected, $this->parser->parse($yaml));