create() public static method

public static create ( $content, $extension = NULL ) : string
return string file name
    public function loadConfiguration()
    {
        $config = <<<CONFIG
services:
\t- Mrtnzlml\\Tests\\Service3('a', %%thisExtensionParameterDoesNotExist%%, 'c')
CONFIG;
        $this->addConfig(FileMock::create($config, 'neon'));
    }
 /**
  * @param string $code
  * @param callable|null $onContainer
  * @param string|null $customConfig
  * @return string
  */
 protected function renderTemplate($code, callable $onContainer = null, $customConfig = null)
 {
     $container = $this->createContainer($customConfig);
     if ($onContainer) {
         $onContainer($container);
     }
     /** @var \Nette\Application\UI\ITemplateFactory $factory */
     $factory = $container->getByType(ITemplateFactory::class);
     $template = $factory->createTemplate(new ControlMock());
     $template->setFile(FileMock::create($code, 'latte'));
     return (string) $template;
 }
    public function loadConfiguration()
    {
        $config = <<<CONFIG
parameters:
\tk2: overridden
\tk3: v3
services:
\t- Mrtnzlml\\Tests\\Service3(@named(), %%numericExtensionParameter%%, '%%')
\t- implement: Mrtnzlml\\Tests\\IService5Factory
\t  arguments:
\t  \t- test
\t  \t- %%numericExtensionParameter%%
\t  \t- %%falseExtensionParameter%%
\t  \t- %%nullExtensionParameter%%
\tnamed: Mrtnzlml\\Tests\\Service2
ext2:
\tek2: overridden
\tek3: ev3
latte:
\tmacros:
\t\t- Mrtnzlml\\Tests\\FakeLatteMacro
CONFIG;
        $this->addConfig(FileMock::create($config, 'neon'));
    }
 public function loadConfiguration()
 {
     $this->addConfig(\Tester\FileMock::create('', 'neon'));
 }