[Pkg-owncloud-commits] [php-sabre-vobject] 16/128: adjust test case to work around hhvm returning a binary string from utf8_encode

David Prévot taffit at moszumanska.debian.org
Tue May 20 23:10:58 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 74d4a711809f151da2aa468adc3e4eb4c1244d95
Author: Robin Appelman <icewind at owncloud.com>
Date:   Tue Dec 31 18:41:01 2013 +0100

    adjust test case to work around hhvm returning a binary string from utf8_encode
---
 tests/Sabre/VObject/StringUtilTest.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/Sabre/VObject/StringUtilTest.php b/tests/Sabre/VObject/StringUtilTest.php
index 59a83d2..cd0942a 100644
--- a/tests/Sabre/VObject/StringUtilTest.php
+++ b/tests/Sabre/VObject/StringUtilTest.php
@@ -32,7 +32,8 @@ class StringUtilTest extends \PHPUnit_Framework_TestCase {
 
         $string = StringUtil::convertToUTF8(chr('0xbf'));
 
-        $this->assertEquals(utf8_encode(chr('0xbf')), $string);
+        // apply a string operation to get hhvm to cast the resulting binary string to a string
+        $this->assertEquals(trim(utf8_encode(chr('0xbf'))), $string);
 
     }
 

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