[Pkg-owncloud-commits] [php-sabre-vobject] 189/341: Add a test for writer + MIME Dir + 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 11cb00ec0e142c00b383935510c7f218fac4cc98
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Thu Jan 22 11:50:18 2015 +0100
Add a test for writer + MIME Dir + exception.
---
tests/VObject/WriterTest.php | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/VObject/WriterTest.php b/tests/VObject/WriterTest.php
index b2b0402..a9a812e 100644
--- a/tests/VObject/WriterTest.php
+++ b/tests/VObject/WriterTest.php
@@ -36,6 +36,15 @@ class WriterTest extends \PHPUnit_Framework_TestCase {
}
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ function testWriteToMimeDirWithUnexpectedArgument() {
+
+ $result = Writer::write('foo');
+
+ }
+
function testWriteToJson() {
$result = Writer::writeJson($this->getComponent());
--
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