/** * This method flags the given line as changed when the given modification * was done within the specified time range. * * @param PHP_ChangeCoverage_Source_Line $line The context source line. * @param vcsBlameStruct $blame The blame data for the line. * * @return void */ protected function flagChangedLines(PHP_ChangeCoverage_Source_Line $line, vcsBlameStruct $blame) { if ($blame->date >= $this->startDate) { $line->setChanged(); } }
/** * testSetChangedFlagsLineAsChanged * * @return void * @covers PHP_ChangeCoverage_Source_Line * @group source * @group unittest */ public function testSetChangedFlagsLineAsChanged() { $line = new PHP_ChangeCoverage_Source_Line(42, 23); $line->setChanged(); self::assertTrue($line->hasChanged()); }