HumHub Documentation (unofficial)

Test
in package
uses Namespaces, Classname

Table of Contents

Properties

$name  : mixed
$settings  : mixed
$template  : mixed
$testerTemplate  : mixed

Methods

__construct()  : mixed
produce()  : mixed
breakParts()  : mixed
getNamespaceHeader()  : mixed
getNamespaces()  : mixed
getNamespaceString()  : mixed
getShortClassName()  : mixed
removeSuffix()  : mixed

Properties

$name

protected mixed $name

$settings

protected mixed $settings

$template

protected mixed $template = <<<EOF <?php {{namespace}} class {{name}}Test extends \\Codeception\\Test\\Unit { {{tester}} protected function _before() { } protected function _after() { } // tests public function testSomeFeature() { } } EOF

$testerTemplate

protected mixed $testerTemplate = <<<EOF /** * @var \\{{actorClass}} */ protected \${{actor}}; EOF

Methods

__construct()

public __construct(mixed $settings, mixed $name) : mixed
Parameters
$settings : mixed
$name : mixed

produce()

public produce() : mixed

breakParts()

protected breakParts(mixed $class) : mixed
Parameters
$class : mixed

getNamespaceHeader()

protected getNamespaceHeader(mixed $class) : mixed
Parameters
$class : mixed

getNamespaces()

protected getNamespaces(mixed $class) : mixed
Parameters
$class : mixed

getNamespaceString()

protected getNamespaceString(mixed $class) : mixed
Parameters
$class : mixed

getShortClassName()

protected getShortClassName(mixed $class) : mixed
Parameters
$class : mixed

removeSuffix()

protected removeSuffix(mixed $classname, mixed $suffix) : mixed
Parameters
$classname : mixed
$suffix : mixed

        
On this page

Search results