write() public method

Writes content into a file
public write ( AssetTarget $build, string $content )
$build MiniAsset\AssetTarget The filename to write.
$content string The contents to write.
 public function testThemeFileSaving()
 {
     $writer = new AssetWriter(['js' => false, 'css' => false], TMP, 'blue');
     $writer->write($this->target, 'theme file.');
     $contents = file_get_contents(TMP . 'blue-test.js');
     $this->assertEquals('theme file.', $contents);
     unlink(TMP . 'blue-test.js');
 }