Skip to content

Commit

Permalink
zendframework#6058 - Adding tests to verify support for integer and s…
Browse files Browse the repository at this point in the history
…tring timestamps
  • Loading branch information
Ocramius authored and dima committed Nov 27, 2014
1 parent 0f84411 commit 0cf9022
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ZendTest/Log/Filter/TimestampTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public function dateTimeDataProvider()
array(new DateTime('2014-03-03'), new DateTime('2014-03-03'), '==', true),
array(new DateTime('2014-02-02'), new DateTime('2014-03-03'), '<', true),
array(new DateTime('2014-03-03'), new DateTime('2014-03-03'), 'lt', false),
array(1399140540, new DateTime('2014-03-03'), 'lt', false),
array(1399140480, new DateTime('2014-03-03'), 'lt', true),
array('1399140540', new DateTime('2014-03-03'), 'lt', false),
array('1399140480', new DateTime('2014-03-03'), 'lt', true),
);
}

Expand Down

0 comments on commit 0cf9022

Please sign in to comment.