From d21592b18988719dd9f385f6d8c17b06440465d1 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 24 Jan 2012 13:11:53 +0100 Subject: [PATCH] removed duplicated tests --- test/Twig/Tests/Fixtures/filters/date.test | 5 ----- .../Fixtures/filters/date_default_format.test | 5 ----- 2 files changed, 0 insertions(+), 10 deletions(-) diff --git a/test/Twig/Tests/Fixtures/filters/date.test b/test/Twig/Tests/Fixtures/filters/date.test index 6f59f20..deb52b2 100644 --- a/test/Twig/Tests/Fixtures/filters/date.test +++ b/test/Twig/Tests/Fixtures/filters/date.test @@ -11,8 +11,6 @@ {{ date4|date('d/m/Y') }} {{ date5|date }} {{ date5|date('d/m/Y') }} -{{ date6|date }} -{{ date6|date('%d days %h hours') }} --DATA-- date_default_timezone_set('UTC'); return array( @@ -21,7 +19,6 @@ return array( 'date3' => '2010-10-04 13:45', 'date4' => 1286199900, 'date5' => -86410, - 'date6' => new DateInterval('P2D'), ) --EXPECT-- October 4, 2010 13:45 @@ -34,5 +31,3 @@ October 4, 2010 13:45 04/10/2010 December 30, 1969 23:59 30/12/1969 -2 days -2 days 0 hours diff --git a/test/Twig/Tests/Fixtures/filters/date_default_format.test b/test/Twig/Tests/Fixtures/filters/date_default_format.test index 87c7442..11a1ef4 100644 --- a/test/Twig/Tests/Fixtures/filters/date_default_format.test +++ b/test/Twig/Tests/Fixtures/filters/date_default_format.test @@ -3,17 +3,12 @@ --TEMPLATE-- {{ date1|date }} {{ date1|date('d/m/Y') }} -{{ date2|date }} -{{ date2|date('%d days') }} --DATA-- date_default_timezone_set('UTC'); $twig->getExtension('core')->setDateFormat('Y-m-d', '%d days %h hours'); return array( 'date1' => mktime(13, 45, 0, 10, 4, 2010), - 'date2' => new DateInterval('P2D'), ) --EXPECT-- 2010-10-04 04/10/2010 -2 days 0 hours -2 days -- 1.7.2.5