/var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Lib/Generator
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Lib/Generator/Test.php (1610B)
settings = $settings;
$this->name = $this->removeSuffix($name, 'Test');
}
public function produce()
{
$actor = $this->settings['actor'];
if ($this->settings['namespace']) {
$actor = $this->settings['namespace'] . '\\' . $actor;
}
$ns = $this->getNamespaceHeader($this->settings['namespace'] . '\\' . $this->name);
$tester = '';
if ($this->settings['actor']) {
$tester = (new Template($this->testerTemplate))
->place('actorClass', $actor)
->place('actor', lcfirst(Configuration::config()['actor_suffix']))
->produce();
}
return (new Template($this->template))
->place('namespace', $ns)
->place('name', $this->getShortClassName($this->name))
->place('tester', $tester)
->produce();
}
}