/var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Lib/Generator
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Lib/Generator/Cept.php (993B)
wantTo('perform actions and see result');
EOF;
protected $settings;
public function __construct($settings)
{
$this->settings = $settings;
}
public function produce()
{
$actor = $this->settings['actor'];
if (!$actor) {
throw new ConfigurationException("Cept can't be created for suite without an actor. Add `actor: SomeTester` to suite config");
}
$use = '';
if (! empty($this->settings['namespace'])) {
$namespace = rtrim($this->settings['namespace'], '\\');
$use = "use {$namespace}\\$actor;";
}
return (new Template($this->template))
->place('actor', $actor)
->place('use', $use)
->produce();
}
}