public function InlineTest::getDateTimeDumpTests in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ InlineTest.php, line 664
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function getDateTimeDumpTests() {
$tests = [];
$dateTime = new \DateTime('2001-12-15 21:59:43', new \DateTimeZone('UTC'));
$tests['date-time-utc'] = [
$dateTime,
'2001-12-15T21:59:43+00:00',
];
$dateTime = new \DateTimeImmutable('2001-07-15 21:59:43', new \DateTimeZone('Europe/Berlin'));
$tests['immutable-date-time-europe-berlin'] = [
$dateTime,
'2001-07-15T21:59:43+02:00',
];
return $tests;
}