Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class FixtureHelper extends Module |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Redeclare visibility because codeception includes all public methods that do not start with "_" |
||
21 | * and are not excluded by module settings, in actor class. |
||
22 | */ |
||
23 | use FixtureTrait { |
||
24 | loadFixtures as public; |
||
25 | fixtures as public; |
||
26 | globalFixtures as public; |
||
27 | createFixtures as public; |
||
28 | unloadFixtures as protected; |
||
29 | getFixtures as protected; |
||
30 | getFixture as protected; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Method called before any suite tests run. Loads User fixture login user |
||
35 | * to use in acceptance and functional tests. |
||
36 | * @param array $settings |
||
37 | */ |
||
38 | public function _beforeSuite($settings = []) |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Method is called after all suite tests run |
||
45 | */ |
||
46 | public function _afterSuite() |
||
47 | { |
||
48 | $this->unloadFixtures(); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | public function globalFixtures() |
||
58 | ]; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | public function fixtures() |
||
74 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths