public function testLastLogin() { //$this->skipTest('Checking for Objekts in attributes does not work'); $user = new ShortUrl_Model_User(); $datetime = new DateTime(); $user->setLastLogin(); $this->assertAttributeEquals($datetime, '_lastlogin', $user); $datetime = new DateTime('2011-05-23H14:55:07+02:00'); $user->setLastLogin($datetime); $this->assertAttributeEquals($datetime, '_lastlogin', $user); $this->assertSame($datetime, $user->getLastLogin()); }