write() public method

Rewrite the template(s) from the source(s) to the target location(s).
public write ( array $parameters = [] ) : null
$parameters array The template(s) parameters.
return null
Example #1
0
 public function testInput()
 {
     $tdir = $this->getTemporaryDirectory();
     $templates = new Components_Helper_Templates_Single(__DIR__ . '/../../../fixture/templates', $tdir, 'input', 'target');
     $templates->write(array('input' => 'SOME INPUT'));
     $this->assertEquals("SOME INPUT", file_get_contents($tdir . '/target'));
 }