[Pkg-owncloud-commits] [php-sabre-vobject] 58/65: Not using CRLF constant. It's messing with the unittests.

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:57:21 UTC 2015


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 5ffeea88d6db943c0ea59ce348020f06451f2be0
Author: Evert Pot <me at evertpot.com>
Date:   Tue Feb 24 10:01:28 2015 -0500

    Not using CRLF constant. It's messing with the unittests.
---
 tests/VObject/Component/VAvailabilityTest.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/VObject/Component/VAvailabilityTest.php b/tests/VObject/Component/VAvailabilityTest.php
index 37fdae1..979a853 100644
--- a/tests/VObject/Component/VAvailabilityTest.php
+++ b/tests/VObject/Component/VAvailabilityTest.php
@@ -7,8 +7,6 @@ use Sabre\VObject\Reader;
 use Sabre\VObject\Component;
 use Sabre\VObject\Component\VAvailability;
 
-const CRLF = "\r\n";
-
 /**
  * We use `RFCxxx` has a placeholder for the
  * https://tools.ietf.org/html/draft-daboo-calendar-availability-05 name.
@@ -380,7 +378,7 @@ VCAL
 
     protected function _template($template, array $properties) {
 
-        return str_replace('…', implode(CRLF, $properties), $template);
+        return str_replace('…', implode("\r\n", $properties), $template);
 
     }
 

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