setTimestamp() public méthode

Set the timestamp for a build file.
public setTimestamp ( AssetTarget $build, integer $time ) : void
$build MiniAsset\AssetTarget The name of the build to set a timestamp for.
$time integer The timestamp.
Résultat void
 public function testGetSetTimestamp()
 {
     $writer = new AssetWriter(['js' => true, 'css' => false], TMP);
     $time = time();
     $writer->setTimestamp($this->target, $time);
     $result = $writer->getTimestamp($this->target);
     $this->assertEquals($time, $result);
 }