[Pkg-owncloud-commits] [php-sabre-vobject] 35/128: This should never have worked on php.

David Prévot taffit at moszumanska.debian.org
Tue May 20 23:11:00 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 5945cad232eb880ae8fa64239fc7dbef33fae3e6
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Wed Jan 22 00:46:49 2014 -0500

    This should never have worked on php.
    
    But it's fixed now anyway, and works for hhvm as well.
---
 tests/Sabre/VObject/StringUtilTest.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/Sabre/VObject/StringUtilTest.php b/tests/Sabre/VObject/StringUtilTest.php
index 59a83d2..7d062ac 100644
--- a/tests/Sabre/VObject/StringUtilTest.php
+++ b/tests/Sabre/VObject/StringUtilTest.php
@@ -6,7 +6,7 @@ class StringUtilTest extends \PHPUnit_Framework_TestCase {
 
     function testNonUTF8() {
 
-        $string = StringUtil::isUTF8(chr('0xbf'));
+        $string = StringUtil::isUTF8(chr(0xbf));
 
         $this->assertEquals(false, $string);
 
@@ -22,7 +22,7 @@ class StringUtilTest extends \PHPUnit_Framework_TestCase {
 
     function testUTF8ControlChar() {
 
-        $string = StringUtil::isUTF8(chr('0x00'));
+        $string = StringUtil::isUTF8(chr(0x00));
 
         $this->assertEquals(false, $string);
 
@@ -30,9 +30,9 @@ class StringUtilTest extends \PHPUnit_Framework_TestCase {
 
     function testConvertToUTF8nonUTF8() {
 
-        $string = StringUtil::convertToUTF8(chr('0xbf'));
+        $string = StringUtil::convertToUTF8(chr(0xbf));
 
-        $this->assertEquals(utf8_encode(chr('0xbf')), $string);
+        $this->assertEquals(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