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