Lines Matching refs:value

30     public function testParse($yaml, $value, $flags = 0)  argument
32 …$this->assertSame($value, Inline::parse($yaml, $flags), sprintf('::parse() converts an inline YAML…
38 public function testParseWithMapObjects($yaml, $value, $flags = Yaml::PARSE_OBJECT_FOR_MAP) argument
42 $this->assertSame(serialize($value), serialize($actual));
48 public function testParsePhpConstants($yaml, $value) argument
52 $this->assertSame($value, $actual);
87 public function testDump($yaml, $value, $parseFlags = 0) argument
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');
116 $value = '686e444';
118 $this->assertSame($value, Inline::parse(Inline::dump($value)));
143 $value = "'don't do somthin' like that'";
144 Inline::parse($value);
152 $value = '"don"t do somthin" like that"';
153 Inline::parse($value);
161 $value = '{ "foo " bar": "bar" }';
162 Inline::parse($value);
192 $value = "'don''t do somthin'' like that'";
195 $this->assertSame($expect, Inline::parseScalar($value));
718 $value = Inline::parse('[!foo]', Yaml::PARSE_CUSTOM_TAGS);
720 $this->assertInstanceOf(TaggedValue::class, $value[0]);
721 $this->assertSame('foo', $value[0]->getTag());
722 $this->assertSame('', $value[0]->getValue());
727 $value = Inline::parse('[!foo ""]', Yaml::PARSE_CUSTOM_TAGS);
729 $this->assertInstanceOf(TaggedValue::class, $value[0]);
730 $this->assertSame('foo', $value[0]->getTag());
731 $this->assertSame('', $value[0]->getValue());
736 $value = Inline::parse('{foo: !bar}', Yaml::PARSE_CUSTOM_TAGS);
738 $this->assertInstanceOf(TaggedValue::class, $value['foo']);
739 $this->assertSame('bar', $value['foo']->getTag());
740 $this->assertSame('', $value['foo']->getValue());
745 $value = Inline::parse('{foo: !bar ""}', Yaml::PARSE_CUSTOM_TAGS);
747 $this->assertInstanceOf(TaggedValue::class, $value['foo']);
748 $this->assertSame('bar', $value['foo']->getTag());
749 $this->assertSame('', $value['foo']->getValue());