[Pkg-owncloud-commits] [php-sabre-vobject] 117/128: Altertered test so it doesn't fail on PHP 5.5.12.
David Prévot
taffit at moszumanska.debian.org
Tue May 20 23:11:08 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 078a706266cc4338e901c9bd7e86d47ae3d96191
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 e2be469..9d4b19c 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