Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Yaml] Add test showing that dates before 01 Jan 1970 are correctly p…

…arsed
  • Loading branch information...
commit fb72a16857d99722019e5bd307c0b4d0a381dc7e 1 parent bed4fdd
@asm89 asm89 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  Tests/InlineTest.php
View
2  Tests/InlineTest.php
@@ -127,6 +127,8 @@ protected function getTestsForParse()
'2007-10-30' => mktime(0, 0, 0, 10, 30, 2007),
'2007-10-30T02:59:43Z' => gmmktime(2, 59, 43, 10, 30, 2007),
'2007-10-30 02:59:43 Z' => gmmktime(2, 59, 43, 10, 30, 2007),
+ '1960-10-30 02:59:43 Z' => gmmktime(2, 59, 43, 10, 30, 1960),
+ '1730-10-30T02:59:43Z' => gmmktime(2, 59, 43, 10, 30, 1730),
'"a \\"string\\" with \'quoted strings inside\'"' => 'a "string" with \'quoted strings inside\'',
"'a \"string\" with ''quoted strings inside'''" => 'a "string" with \'quoted strings inside\'',
Please sign in to comment.
Something went wrong with that request. Please try again.