diff --git a/src/Symfony/Component/Yaml/Tests/InlineTest.php b/src/Symfony/Component/Yaml/Tests/InlineTest.php index 935f6a72a84c1..de592a0dc9c59 100644 --- a/src/Symfony/Component/Yaml/Tests/InlineTest.php +++ b/src/Symfony/Component/Yaml/Tests/InlineTest.php @@ -499,7 +499,10 @@ public function testParseTimestampAsDateTimeObject($yaml, $year, $month, $day, $ $expected->setDate($year, $month, $day); $expected->setTime($hour, $minute, $second); - $this->assertEquals($expected, Inline::parse($yaml, Yaml::PARSE_DATETIME)); + $actual = Inline::parse($yaml, Yaml::PARSE_DATETIME); + $actual->setTimezone(new \DateTimeZone('UTC')); + + $this->assertEquals($expected->getTimestamp(), $actual->getTimestamp()); } public function getTimestampTests()