[Pkg-owncloud-commits] [php-sabre-vobject] 24/43: fixed dataprovider

David Prévot taffit at moszumanska.debian.org
Fri Oct 10 14:16:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit f7e05ef1adc87e0e8348fdf835caff735e8a0635
Author: Dominik Tobschall <dominik at fruux.com>
Date:   Tue Sep 30 14:19:49 2014 +0200

    fixed dataprovider
---
 tests/VObject/TimeZoneUtilTest.php | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/tests/VObject/TimeZoneUtilTest.php b/tests/VObject/TimeZoneUtilTest.php
index 6526ed4..523dbbb 100644
--- a/tests/VObject/TimeZoneUtilTest.php
+++ b/tests/VObject/TimeZoneUtilTest.php
@@ -177,20 +177,14 @@ HI;
 
     function getPHPTimeZoneIdentifiers() {
 
-        $tzIdentifiers = \DateTimeZone::listIdentifiers();
-
-        $tzids = array();
-        foreach($tzIdentifiers as $key => $tzid) {
-            $tzids[] = $tzid;
-        }
-
         // PHPUNit requires an array of arrays
         return array_map(
             function($value) {
                 return array($value);
             },
-            $tzids
+            \DateTimeZone::listIdentifiers()
         );
+
     }
 
     function getPHPTimeZoneBCIdentifiers() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list