public function testUpdateLastModifiedDate() { $p = new Project($this->container); $this->assertEquals(1, $p->create(array('name' => 'UnitTest'))); $now = time(); $project = $p->getById(1); $this->assertNotEmpty($project); $this->assertEquals($now, $project['last_modified'], 'Wrong Timestamp', 1); sleep(1); $this->assertTrue($p->updateModificationDate(1)); $project = $p->getById(1); $this->assertNotEmpty($project); $this->assertGreaterThan($now, $project['last_modified']); }