/** * Test for Tracker::getLogComment() * * @return void * @test */ public function testGetLogComment() { if (!setupForTestsUsingDate()) { $this->markTestSkipped("Cannot override internal function date()"); } $date = date('Y-m-d H:i:s'); $GLOBALS['cfg']['Server']['user'] = "******"; $this->assertEquals("# log {$date} pma_test_user\n", Tracker::getLogComment()); tearDownForTestsUsingDate(); }