cvs: pear /Contact_Vcard_Build/tests build-foobar.php

From: Date: Tue, 30 Jun 2009 22:26:39 +0000
Subject: cvs: pear /Contact_Vcard_Build/tests build-foobar.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-56497@lists.php.net to get a copy of this message
till Tue Jun 30 22:26:39 2009 UTC Added files: /pear/Contact_Vcard_Build/tests build-foobar.php Log: * another test http://cvs.php.net/viewvc.cgi/pear/Contact_Vcard_Build/tests/build-foobar.php?view=markup&rev=1.1 Index: pear/Contact_Vcard_Build/tests/build-foobar.php +++ pear/Contact_Vcard_Build/tests/build-foobar.php --TEST-- Create a vcard 2.1 with ORG and different 'phones'. --SKIPIF-- <?php if (!class_exists('Contact_Vcard_Build')) { die('SKIP This test requires Contact_Vcard_Build.'); } --FILE-- <?php $vcard = new Contact_Vcard_Build('2.1'); $vcard = new Contact_Vcard_Build(); $vcard->setFormattedName('Bar Foo'); $vcard->setName('Bar', '', 'Foo', '', ''); $vcard->setTitle('FOOBAR'); $vcard->addOrganization('OHAI'); $vcard->addEmail('foobar@example.org'); $vcard->addTelephone('0900-foobar', $type = 'work'); $vcard->addTelephone('0900-foobar-cell', $type = 'cell'); $vcard->addTelephone('0900-foobar-fax', $type = 'fax'); var_dump($vcard->fetch()); --EXPECT-- foo

« previous php.pear.cvs (#56497) next »