for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SmartWeb\ModuleTesting\Codeception\Generator;
/**
* Class UnitTest
*
* @package SmartWeb\ModuleTesting\Codeception\Generator
*/
class UnitTest extends BaseGenerator
{
* @var string
protected $testsDir;
* UnitTest constructor.
* @param array $settings
* @param string $name
public function __construct(array $settings, string $name)
parent::__construct('Unit', 'test.unit');
$this->settings = $settings;
$this->name = $name;
$this->settings['namespace'] = $this->getNamespaceForTest();
$this->settings['name'] = $this->getShortClassName($this->name);
$this->settings['baseClassShort'] = $this->getShortClassName($this->settings['baseClass']);
}