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

CodeSpecs   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A _before() 0 5 1
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
}