[Pkg-owncloud-commits] [php-sabre-vobject] 136/341: Add the reflexive equality asserter helper.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:41 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 0864f204bdd7466569c8fde9b584ae45ab6f4fa7
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Fri Jan 16 09:27:27 2015 +0100
Add the reflexive equality asserter helper.
---
tests/VObject/Parser/XmlTest.php | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/tests/VObject/Parser/XmlTest.php b/tests/VObject/Parser/XmlTest.php
index 0679960..1d67c82 100644
--- a/tests/VObject/Parser/XmlTest.php
+++ b/tests/VObject/Parser/XmlTest.php
@@ -1114,9 +1114,27 @@ XML
}
+ /**
+ * Check this equality:
+ * xCal -> object model -> iCal.
+ */
protected function assertXCalEqualsToICal($xcal, $ical) {
$component = VObject\Reader::readXML($xcal);
$this->assertEquals($ical, VObject\Writer::write($component));
+
+ }
+
+ /**
+ * Check this (reflexive) equality:
+ * xCal -> object model -> iCal -> object model -> xCal.
+ */
+ protected function assertXCalReflexivelyEqualsToICal($xcal, $ical) {
+
+ $this->assertXCalEqualsToICal($xcal, $ical);
+
+ $component = VObject\Reader::read($ical);
+ $this->assertEquals($xcal, rtrim(VObject\Writer::writeXML($component)));
+
}
}
--
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