summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-06-28 15:56:35 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-06-28 15:56:35 (GMT)
commit57b3e3cf20ad99b82cee6343c04b5ddd0ab55037 (patch)
tree9f47cc066b17d334eed1d49a21577c0335508020
parent190f78607ca23d40df45d2f3b3d85cc0e07648c6 (diff)
parentbbb2c32b4f3644c82b91afd8238cd4a57f7c23b2 (diff)
downloadlibkolabxml-57b3e3cf20ad99b82cee6343c04b5ddd0ab55037.tar.gz
Merge branch 'master' of ssh://git.kolab.org/git/libkolabxml
-rwxr-xr-xsrc/php/test.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/php/test.php b/src/php/test.php
index 1da42f2..f53f2e2 100755
--- a/src/php/test.php
+++ b/src/php/test.php
@@ -157,6 +157,8 @@ $c1 = kolabformat::readContact($xml, false);
assertequal($xml, kolabformat::writeContact($c1), "kolabformat::readContact() => kolabformat::writeContact()");
assertequal($c1->photoMimetype(), "image/gif", "Contact::photoMimetype()");
assertequal($c1->uid(), kolabformat::getSerializedUID(), "kolabformat::getSerializedUID()");
+$lm = $c1->lastModified();
+assertequal(sprintf('%d-%02d-%02d', $lm->year(), $lm->month(), $lm->day()), gmdate('Y-m-d'), "Contact::lastModified()");
$c1->setBDay(new cDateTime);
$xml = kolabformat::writeContact($c);