[Pkg-owncloud-commits] [php-sabre-vobject] 23/32: Another PHP 5.3 issue.

David Prévot taffit at moszumanska.debian.org
Fri Nov 28 22:27:11 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 eb279906684095ec71f49aee028992a542163195
Author: Evert Pot <me at evertpot.com>
Date:   Thu Nov 13 14:52:38 2014 -0500

    Another PHP 5.3 issue.
---
 tests/VObject/FreeBusyGeneratorTest.php           | 4 ++--
 tests/VObject/Property/ICalendar/DateTimeTest.php | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/VObject/FreeBusyGeneratorTest.php b/tests/VObject/FreeBusyGeneratorTest.php
index d14d3fc..1e580be 100644
--- a/tests/VObject/FreeBusyGeneratorTest.php
+++ b/tests/VObject/FreeBusyGeneratorTest.php
@@ -201,12 +201,12 @@ ICS;
 
         $tests[] = array(
             Reader::read($blob),
-            [
+            array(
                 '20110103T010000Z/20110103T020000Z',
                 '20110103T030000Z/20110103T040000Z',
                 '20110103T040000Z/20110103T050000Z',
                 '20110103T050000Z/20110103T060000Z',
-            ]
+            )
         );
 
 
diff --git a/tests/VObject/Property/ICalendar/DateTimeTest.php b/tests/VObject/Property/ICalendar/DateTimeTest.php
index 1c028f6..c7ddfb8 100644
--- a/tests/VObject/Property/ICalendar/DateTimeTest.php
+++ b/tests/VObject/Property/ICalendar/DateTimeTest.php
@@ -121,7 +121,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase {
         $dt2->setTimeZone($tz);
 
         $elem = $this->vcal->createProperty('DTSTART');
-        $elem->setValue([$dt1, $dt2]);
+        $elem->setValue(array($dt1, $dt2));
 
         $this->assertEquals('19850704T013000,19850704T023000', (string)$elem);
         $this->assertEquals('Europe/Amsterdam', (string)$elem['TZID']);
@@ -140,7 +140,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase {
         $dt2->setTimeZone($tz);
 
         $elem = $this->vcal->createProperty('DTSTART');
-        $elem->setParts([$dt1, $dt2]);
+        $elem->setParts(array($dt1, $dt2));
 
         $this->assertEquals('19850704T013000,19850704T023000', (string)$elem);
         $this->assertEquals('Europe/Amsterdam', (string)$elem['TZID']);
@@ -155,7 +155,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase {
         $dt2 = '19850704T023000Z';
 
         $elem = $this->vcal->createProperty('DTSTART');
-        $elem->setParts([$dt1, $dt2]);
+        $elem->setParts(array($dt1, $dt2));
 
         $this->assertEquals('19850704T013000Z,19850704T023000Z', (string)$elem);
         $this->assertNull($elem['VALUE']);
@@ -349,7 +349,7 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase {
         $dtstart = $vevent->add(
             'DTSTART',
             new \DateTime('2014-03-07'),
-            ['VALUE' => 'DATE']
+            array('VALUE' => 'DATE')
         );
 
         $this->assertEquals("DTSTART;VALUE=DATE:20140307\r\n", $dtstart->serialize());

-- 
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