[Pkg-owncloud-commits] [php-sabre-vobject] 95/106: getNormalized fails with non-absolute uris

David Prévot taffit at moszumanska.debian.org
Fri Aug 22 15:11:09 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 9d665a8cbd7e435c4844f55c887ede220fbcefa0
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Thu Aug 14 13:48:40 2014 -0400

    getNormalized fails with non-absolute uris
---
 .../VObject/Property/ICalendar/CalAddressTest.php  | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/tests/VObject/Property/ICalendar/CalAddressTest.php b/tests/VObject/Property/ICalendar/CalAddressTest.php
new file mode 100644
index 0000000..3d7b8b5
--- /dev/null
+++ b/tests/VObject/Property/ICalendar/CalAddressTest.php
@@ -0,0 +1,32 @@
+<?php
+
+namespace Sabre\VObject\Property\ICalendar;
+
+class CalAddressTest extends \PHPUnit_Framework_TestCase {
+
+    /**
+     * @dataProvider values
+     */
+    function testGetNormalizedValue($expected, $input) {
+
+        $vobj = new \Sabre\VObject\Component\VCalendar();
+        $property = $vobj->add('ATTENDEE', $input);
+
+        $this->assertEquals(
+            $expected,
+            $property->getNormalizedValue()
+        );
+
+    }
+
+    function values() { 
+
+        return array(
+            array('mailto:a at b.com', 'mailto:a at b.com'),
+            array('mailto:a at b.com', 'MAILTO:a at b.com'),
+            array('/foo/bar', '/foo/bar'),
+        );
+
+    }
+
+}

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