Example #1
0
 public function testIncrementTotalLogins()
 {
     $user = new User();
     $this->assertSame(null, $user->getLastLogin());
     $user->incrementTotalLogins();
     $this->assertSame(1, $user->getTotalLogins());
     $this->assertTrue($user->getLastLogin()->getTimestamp() > 0);
 }