Permalink
Browse files

Add test for Bug #19568

  • Loading branch information...
CloCkWeRX committed Sep 2, 2012
1 parent 2a466d0 commit f4d234550fad696d766a5098d9355064b15f1ff7
Showing with 22 additions and 0 deletions.
  1. +22 −0 tests/bugs/bug-19568.phpt
View
@@ -0,0 +1,22 @@
--TEST--
Bug #19568 setDate() handles ISO week dates incorrectly
--FILE--
<?php
require_once 'Date.php';
$x = new Date('2012-W49-1');
print $x->year . "\n";
print $x->month . "\n";
print $x->day . "\n";
$y = new Date('2012-W50-1');
print $y->year . "\n";
print $y->month . "\n";
print $y->day . "\n";
--EXPECT--
2012
12
3
2012
12
10

0 comments on commit f4d2345

Please sign in to comment.