Commit a783bdae authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

StringProperty unittest

parent ae9548bc
* Copyright (c) 2013 Thomas Tanghus (
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
class Test_VObject extends PHPUnit_Framework_TestCase {
public function setUp() {
Sabre\VObject\Property::$classMap['SUMMARY'] = 'OC\VObject\StringProperty';
function testStringProperty() {
$property = Sabre\VObject\Property::create('SUMMARY', 'Escape;this,please');
$this->assertEquals("SUMMARY:Escape\;this\,please\r\n", $property->serialize());
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment