Hook::afterFeatureFixturesCleanup()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Magefix\Behat;
4
5
/**
6
 * Class Hook
7
 *
8
 * @package Magefix\Behat
9
 * @author  Carlo Tasca <[email protected]>
10
 */
11
trait Hook
12
{
13
    /**
14
     * @BeforeSuite
15
     */
16
    public static function beforeSuiteFixturesCleanup()
17
    {
18
        self::_cleanupFixtureByHook('beforesuite');
19
    }
20
21
    /**
22
     * @AfterSuite
23
     */
24
    public static function afterSuiteFixturesCleanup()
25
    {
26
        self::_cleanupFixtureByHook('aftersuite');
27
    }
28
29
    /**
30
     * @BeforeFeature
31
     */
32
    public static function beforeFeatureFixturesCleanup()
33
    {
34
        self::_cleanupFixtureByHook('beforefeature');
35
    }
36
37
    /**
38
     * @AfterFeature
39
     */
40
    public static function afterFeatureFixturesCleanup()
41
    {
42
        self::_cleanupFixtureByHook('afterfeature');
43
    }
44
45
    /**
46
     * @BeforeScenario
47
     */
48
    public function beforeScenarioFixturesCleanup()
49
    {
50
        self::_cleanupFixtureByHook('beforescenario');
51
    }
52
53
    /**
54
     * @AfterScenario
55
     */
56
    public function afterScenarioFixturesCleanup()
57
    {
58
        self::_cleanupFixtureByHook('afterscenario');
59
    }
60
61
    /**
62
     * @BeforeStep
63
     */
64
    public function beforeStepFixturesCleanup()
65
    {
66
        self::_cleanupFixtureByHook('beforestep');
67
    }
68
69
    /**
70
     * @AfterStep
71
     */
72
    public function afterStepFixturesCleanup()
73
    {
74
        self::_cleanupFixtureByHook('afterstep');
75
    }
76
}
77