File manager - Edit - /usr/local/prospamfilter/vendor/codeception/codeception/src/Codeception/Lib/Generator/Cept.php
Back
<?php namespace Codeception\Lib\Generator; use Codeception\Util\Template; class Cept { protected $template = <<<EOF <?php {{use}} \$I = new {{actor}}(\$scenario); \$I->wantTo('perform actions and see result'); EOF; protected $settings; public function __construct($settings) { $this->settings = $settings; } public function produce() { $actor = $this->settings['class_name']; $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(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings