You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
789 B
25 lines
789 B
3 years ago
|
<?php
|
||
|
namespace Rinsvent\RequestBundle\Tests\Helper;
|
||
|
|
||
|
// here you can define custom actions
|
||
|
// all public methods declared in helper class will be available in $I
|
||
|
|
||
|
use Rinsvent\ApiSDKGenerator\DTO\Writer\Config;
|
||
|
use Rinsvent\ApiSDKGenerator\Service\Writer;
|
||
|
|
||
|
class Unit extends \Codeception\Module
|
||
|
{
|
||
|
public function getWriter(string $lang = 'php'): Writer
|
||
|
{
|
||
|
return new Writer(
|
||
|
new Config(
|
||
|
dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'templates',
|
||
|
dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'var/tests/cache',
|
||
|
$lang,
|
||
|
dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'var/tests/result',
|
||
|
'Rinsvent\\AuthSDK'
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|