testFormatDateWithLocale always fails on Windows

This commit is contained in:
Franck Allimant
2014-06-26 11:25:50 +02:00
parent 0dde8b888a
commit 4012761815

View File

@@ -160,6 +160,9 @@ class FormatTest extends \PHPUnit_Framework_TestCase
public function testFormatDateWithLocale() public function testFormatDateWithLocale()
{ {
// Fails on Windows
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') return;
$dateTime = new \DateTime(); $dateTime = new \DateTime();
// 2014-06-17 // 2014-06-17
$dateTime->setTimestamp(1402987842); $dateTime->setTimestamp(1402987842);