setTimestamp() public method

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.
return void
Ejemplo n.º 1
0
 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);
 }