Passed
Push — master ( 62eb0a...4fb3de )
by Dmitry
01:45
created

CodeSpecs::_before()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PHPKitchen\CodeSpecs\Integration\Codeception;
4
5
use Codeception\Module;
6
use Codeception\TestInterface;
7
use PHPKitchen\CodeSpecs\Contract\TestGuy;
8
use PHPKitchen\CodeSpecs\Mixin\TestGuyMethods;
9
10
/**
11
 * Represents a Codeception module that add a bunch of cool methods to "Actor" for unit testing
12
 * and show a way of representing unit tests as a behavior specifications of a specific class
13
 * and a test of specific method as a specification of the method.
14
 *
15
 * @package PHPKitchen\CodeSpecs\Integration\Codeception
16
 * @author Dmitry Kolodko <[email protected]>
17
 */
18
class CodeSpecs extends Module implements TestGuy {
19
    use TestGuyMethods;
20
21
    //region ----------------------- UTIL METHODS -----------------------
22
23
    public function _before(TestInterface $test) {
24
        $this->context = $test;
25
        $this->initStepsList();
26
27
        parent::_before($test);
28
    }
29
30
    //endregion
31
}