[Pkg-owncloud-commits] [php-sabre-vobject] 190/341: Add a test for write + XML + exception.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:46 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 41ae54aeab506b431ae8e729aaac950ff906805f
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Thu Jan 22 11:50:53 2015 +0100

    Add a test for write + XML + exception.
---
 tests/VObject/WriterTest.php | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/VObject/WriterTest.php b/tests/VObject/WriterTest.php
index a9a812e..043a9f8 100644
--- a/tests/VObject/WriterTest.php
+++ b/tests/VObject/WriterTest.php
@@ -65,4 +65,13 @@ class WriterTest extends \PHPUnit_Framework_TestCase {
 
     }
 
+    /**
+     * @expectedException InvalidArgumentException
+     */
+    function testWriteToXmlWithUnexpectedArgument() {
+
+        $result = Writer::writeXml('foo');
+
+    }
+
 }

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