PhpSpec\CodeGenerator\Generator\PromptingGenerator::generateFileAndRenderTemplate PHP Method

generateFileAndRenderTemplate() private method

private generateFileAndRenderTemplate ( PhpSpec\Locator\Resource $resource, string $filepath )
$resource PhpSpec\Locator\Resource
$filepath string
    private function generateFileAndRenderTemplate(Resource $resource, $filepath)
    {
        $content = $this->renderTemplate($resource, $filepath);
        $this->filesystem->putFileContents($filepath, $content);
        $this->io->writeln($this->getGeneratedMessage($resource, $filepath));
    }