From 95d0d074b890f3294e966aac839f9ea2ff08e135 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sat, 3 May 2014 02:36:55 +0200 Subject: [PATCH] zendframework/zf2#6058 - Adding tests to verify support for integer and string timestamps --- test/Filter/TimestampTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Filter/TimestampTest.php b/test/Filter/TimestampTest.php index 57eb2f90..b08070c1 100644 --- a/test/Filter/TimestampTest.php +++ b/test/Filter/TimestampTest.php @@ -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), ); }