芝麻web文件管理V1.00
编辑当前文件:/home/strato/chroot/opt/RZphp5/includes/test/Contact_Vcard_Build/tests/build-email.phpt
--TEST-- A test to make sure email addresses are added to a vcard. --CREDITS-- Taken from docs. --SKIPIF-- setFormattedName('Till Klampaeckel'); // set the structured name parts $vcard->setName('Till', 'F', 'Klampaeckel', 'Herr', ''); $vcard->addEmail('till@my.work.email'); $vcard->addParam('TYPE', 'WORK'); $vcard->addEmail('till@php.net'); $vcard->addParam('TYPE', 'HOME'); $vcard->addParam('TYPE', 'PREF'); $text = $vcard->fetch(); var_dump($text); --EXPECT-- string(164) "BEGIN:VCARD VERSION:3.0 PROFILE:VCARD FN:Till Klampaeckel N:Till;F;Klampaeckel;Herr; EMAIL;TYPE=WORK:till@my.work.email EMAIL;TYPE=HOME,PREF:till@php.net END:VCARD "