[Pkg-owncloud-commits] [php-sabre-vobject] 16/43: Updated repair test case for UID injection

David Prévot taffit at moszumanska.debian.org
Sat Jan 10 14:20:14 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 3f7b9c2b304f23b59bb2dd14fc243876218d9934
Author: Jason Pirkey <jason at pirkplace.com>
Date:   Tue Dec 23 20:20:35 2014 -0500

    Updated repair test case for UID injection
---
 tests/VObject/CliTest.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/VObject/CliTest.php b/tests/VObject/CliTest.php
index 9d4b19c..9049c00 100644
--- a/tests/VObject/CliTest.php
+++ b/tests/VObject/CliTest.php
@@ -498,8 +498,7 @@ VCARD
         );
 
         rewind($this->cli->stdout);
-        $this->assertEquals("BEGIN:VCARD\r\nVERSION:2.1\r\nEND:VCARD\r\n", stream_get_contents($this->cli->stdout));
-
+        $this->assertRegExp("/^BEGIN:VCARD\r\nVERSION:2.1\r\nUID:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\r\nEND:VCARD\r\n$/", stream_get_contents($this->cli->stdout));
     }
 
     function testRepairNothing() {

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