Skip to content

Commit

Permalink
Setting timezone in php.ini to fix test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kaczocha committed Oct 1, 2014
1 parent 948b08a commit 1b90b47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/lib/formatters/ErrorLogFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class ErrorLogFormatterTest extends \PHPUnit_Framework_TestCase
*/
public function setUp( )
{


$this->formatter = new ErrorLogFormatter( );
}

Expand All @@ -86,7 +88,7 @@ public function testFormatValidSettings( )
{
$record = new ErrorLogRecord( Log::LEVEL_ERROR, 'This is the error message' );
$date = new \DateTime( );
$date->setTimezone( new \DateTimeZone( 'EST' ) );
//$date->setTimezone( new \DateTimeZone( 'EST' ) );
$date->setDate( 2014, 10, 01 );
$date->setTime( 23, 14, 55 );

Expand Down

0 comments on commit 1b90b47

Please sign in to comment.