Skip to content

Commit

Permalink
add test for getKetList method
Browse files Browse the repository at this point in the history
add some value in exemple3.0
  • Loading branch information
mcarbonneaux committed Nov 15, 2015
1 parent 1bd8fbe commit 2f4e3c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Example3.0.vcf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ PHOTO;VALUE=URL;TYPE=GIF:http://upload.wikimedia.org/wikipedia/commons/thumb/a/a
TEL;TYPE=WORK,VOICE:(111) 555-1212
TEL;TYPE=HOME,VOICE:(404) 555-1212
TEL;TYPE=HOME,TYPE=VOICE:(404) 555-1213
ADR;TYPE=WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America
ADR;TYPE=WORK:;extended;street 1;city;state;zip;country
ADR;TYPE=WORK:;appartement 1;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;TYPE=WORK:100 Waters Edge\nBaytown, LA 30314\nUnited States of America
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;TYPE=HOME:42 Plantation St.\nBaytown, LA 30314\nUnited States of America
Expand All @@ -33,4 +34,4 @@ AGENT:BEGIN:VCARD
REV:20080424T195243Z
END:VCARD
REV:20080424T195243Z
END:VCARD
END:VCARD
12 changes: 12 additions & 0 deletions test2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

include('vCard.php');
$vCard = new vCard('Example3.0.vcf');

printf("nb contact:%s\n",count($vCard));
$keylist=$vCard->getKeyList();
foreach($keylist as $key => $val)
{
printf("Properties:%s\n",$val);
print_r($vCard->$val);
}

0 comments on commit 2f4e3c1

Please sign in to comment.