Beispiel #1
0
 public function testDetails()
 {
     $this->insert(1, 200, mktime(0, 0, 0, 1, 1, 2010));
     $PB = new PersonalBest(1, $this->PDO, false);
     $PB->lookupWithDetails();
     $this->assertTrue($PB->knowsActivity());
     $this->assertGreaterThan(0, $PB->activityId());
     $this->assertEquals(mktime(0, 0, 0, 1, 1, 2010), $PB->timestamp());
 }