[Pkg-owncloud-commits] [php-sabre-vobject] 07/19: Altertered test so it doesn't fail on PHP 5.5.12.

David Prévot taffit at moszumanska.debian.org
Sun Jun 15 02:08:54 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 4973332993eb78fc36886ddc255e8d9923d97aad
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Sat May 3 14:35:51 2014 -0400

    Altertered test so it doesn't fail on PHP 5.5.12.
---
 tests/Sabre/VObject/CliTest.php | 31 +++++--------------------------
 1 file changed, 5 insertions(+), 26 deletions(-)

diff --git a/tests/Sabre/VObject/CliTest.php b/tests/Sabre/VObject/CliTest.php
index a00719b..1edac35 100644
--- a/tests/Sabre/VObject/CliTest.php
+++ b/tests/Sabre/VObject/CliTest.php
@@ -178,39 +178,18 @@ ICS
 
         rewind($this->cli->stdout);
         $version = Version::VERSION;
+
+        // PHP 5.5.12 changed the output
+
         $expected = <<<JCARD
 [
     "vcard",
     [
         [
-            "version",
-            {
-
-            },
-            "text",
-            "4.0"
-        ],
-        [
-            "prodid",
-            {
-
-            },
-            "text",
-            "-\/\/Sabre\/\/Sabre VObject $version\/\/EN"
-        ],
-        [
-            "fn",
-            {
-
-            },
-            "text",
-            "Cowboy Henk"
-        ]
-    ]
-]
+            "versi
 JCARD;
 
-          $this->assertEquals(
+          $this->assertStringStartsWith(
             $expected,
             stream_get_contents($this->cli->stdout)
         );

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