BaseUnitTest::_before()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace SmartWeb\ModuleTesting;
5
6
use Codeception\Specify;
7
use Codeception\Test\Unit;
8
use Mockery;
9
use SmartWeb\ModuleTesting\Contracts\Test\CodeceptionUnitTest;
10
use SmartWeb\ModuleTesting\Util\WithMockery;
11
12
13
/**
14
 * Class BaseUnitTest
15
 *
16
 * @package SmartWeb\ModuleTesting
17
 */
18
abstract class BaseUnitTest extends Unit implements CodeceptionUnitTest
19
{
20
    
21
    use Specify, WithMockery;
22
    
23
    /**
24
     * @inheritDoc
25
     */
26
    public static function setUpBeforeClass()
27
    {
28
        parent::setUpBeforeClass();
29
    }
30
    
31
    /**
32
     * @inheritDoc
33
     */
34
    public function _initialize()
35
    {
36
    
37
    }
38
    
39
    /**
40
     * @inheritDoc
41
     */
42
    public function _cleanup()
43
    {
44
    
45
    }
46
    
47
    /**
48
     * @inheritDoc
49
     */
50
    public function _beforeSuite(array $settings = [])
51
    {
52
    
53
    }
54
    
55
    /**
56
     * @inheritDoc
57
     */
58
    public function _afterSuite()
59
    {
60
    
61
    }
62
    
63
    /**
64
     * @inheritDoc
65
     */
66
    public function _before()
67
    {
68
    
69
    }
70
    
71
    /**
72
     * @inheritDoc
73
     */
74
    public function _after()
75
    {
76
        Mockery::close();
77
    }
78
    
79
    /**
80
     * @inheritDoc
81
     */
82
    public function _failed($fail)
83
    {
84
    
85
    }
86
    
87
}
88