Lines Matching refs:expected
201 public function testParseReferences($yaml, $expected) argument
203 $this->assertSame($expected, Inline::parse($yaml, 0, ['var' => 'var-value']));
291 public function testIsHash($array, $expected) argument
293 $this->assertSame($expected, Inline::isHash($array));
547 $expected = new \DateTime($yaml);
548 $expected->setTimeZone(new \DateTimeZone('UTC'));
549 $expected->setDate($year, $month, $day);
550 $expected->setTime($hour, $minute, $second, 1000000 * ($second - (int) $second));
553 $this->assertEquals($expected, $date);
572 $expected = new \DateTime($yaml);
573 $expected->setTimeZone(new \DateTimeZone('UTC'));
574 $expected->setDate($year, $month, $day);
575 $expected->setTime($hour, $minute, $second, 1000000 * ($second - (int) $second));
577 $expectedNested = ['nested' => [$expected]];
586 public function testDumpDateTime($dateTime, $expected) argument
588 $this->assertSame($expected, Inline::dump($dateTime));
677 public function testParseMissingMappingValueAsNull($yaml, $expected) argument
679 $this->assertSame($expected, Inline::parse($yaml));
701 public function testImplicitStringCastingOfMappingKeysIsDeprecated($yaml, $expected) argument
703 $this->assertSame($expected, Inline::parse($yaml));