src/php

Thomas Brüderli bruederli at kolabsys.com
Tue Jun 26 15:37:04 CEST 2012


 src/php/test.php |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit bbb2c32b4f3644c82b91afd8238cd4a57f7c23b2
Author: Thomas Bruederli <thomas at roundcube.net>
Date:   Tue Jun 26 15:37:27 2012 +0200

    Add test for lastModified() getter for contacts

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);





More information about the commits mailing list