File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,20 @@ public function testUrl()
153
153
$ this ->assertEquals ($ parser ->getCardAtIndex (0 )->url ['PREF;WORK ' ][0 ], 'http://work1.example.com ' );
154
154
$ this ->assertEquals ($ parser ->getCardAtIndex (0 )->url ['PREF;WORK ' ][1 ], 'http://work2.example.com ' );
155
155
}
156
+
157
+ public function testNote ()
158
+ {
159
+ $ vcard = new VCard ();
160
+ $ vcard ->addNote ('This is a testnote ' );
161
+ $ parser = new VCardParser ($ vcard ->buildVCard ());
162
+
163
+ $ vcardMultiline = new VCard ();
164
+ $ vcardMultiline ->addNote ("This is a multiline note \nNew line content! " );
165
+ $ parserMultiline = new VCardParser ($ vcardMultiline ->buildVCard ());
166
+
167
+ $ this ->assertEquals ($ parser ->getCardAtIndex (0 )->note , 'This is a testnote ' );
168
+ $ this ->assertEquals ($ parserMultiline ->getCardAtIndex (0 )->note , "This is a multiline note \nNew line content! " );
169
+ }
156
170
157
171
public function testTitle ()
158
172
{
You can’t perform that action at this time.
0 commit comments