Lines Matching refs:this

32 …$this->assertSame($value, Inline::parse($yaml, $flags), sprintf('::parse() converts an inline YAML…
42 $this->assertSame(serialize($value), serialize($actual));
52 $this->assertSame($value, $actual);
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');
98 $this->markTestSkipped('Your platform does not support locales.');
104 … $this->markTestSkipped('Could not set any of required locales: '.implode(', ', $requiredLocales));
107 $this->assertEquals('1.2', Inline::dump(1.2));
108 $this->assertContains('fr', strtolower(setlocale(LC_NUMERIC, 0)));
118 $this->assertSame($value, Inline::parse(Inline::dump($value)));
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]));
253 if (method_exists($this, 'expectExceptionMessage')) {
254 $this->expectException(ParseException::class);
255 …$this->expectExceptionMessage(sprintf('cannot start a plain scalar; you need to quote the scalar a…
257 …$this->setExpectedException(ParseException::class, sprintf('cannot start a plain scalar; you need …
273 if (method_exists($this, 'expectExceptionMessage')) {
274 $this->expectException(ParseException::class);
275 …$this->expectExceptionMessage(sprintf('cannot start a plain scalar; you need to quote the scalar a…
277 …$this->setExpectedException(ParseException::class, sprintf('cannot start a plain scalar; you need …
293 $this->assertSame($expected, Inline::isHash($array));
539 … $this->assertSame(gmmktime($hour, $minute, $second, $month, $day, $year), Inline::parse($yaml));
553 $this->assertEquals($expected, $date);
554 $this->assertSame($timezone, $date->format('O'));
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));
627 if (method_exists($this, 'expectException')) {
628 $this->expectExceptionMessageRegExp($expectedMessage);
630 $this->setExpectedExceptionRegExp(ParseException::class, $expectedMessage);
662 $this->assertEquals($longStringWithQuotes, $arrayFromYaml['longStringWithQuotes']);
679 $this->assertSame($expected, Inline::parse($yaml));
692 $this->assertSame(['' => 'foo'], Inline::parse('{ "": foo }'));
703 $this->assertSame($expected, Inline::parse($yaml));
720 $this->assertInstanceOf(TaggedValue::class, $value[0]);
721 $this->assertSame('foo', $value[0]->getTag());
722 $this->assertSame('', $value[0]->getValue());
729 $this->assertInstanceOf(TaggedValue::class, $value[0]);
730 $this->assertSame('foo', $value[0]->getTag());
731 $this->assertSame('', $value[0]->getValue());
738 $this->assertInstanceOf(TaggedValue::class, $value['foo']);
739 $this->assertSame('bar', $value['foo']->getTag());
740 $this->assertSame('', $value['foo']->getValue());
747 $this->assertInstanceOf(TaggedValue::class, $value['foo']);
748 $this->assertSame('bar', $value['foo']->getTag());
749 $this->assertSame('', $value['foo']->getValue());