Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | protected function getBaseSettings() : array |
||
36 | { |
||
37 | $suiteSettings = $this->getSuiteSettings($this->suite); |
||
38 | $moduleSettings = $this->getSettingsForModule(); |
||
39 | |||
40 | $baseSettings = [ |
||
41 | 'namespace' => $suiteSettings['namespace'], |
||
42 | 'baseClass' => $this->getBaseClass(), |
||
43 | 'baseClassShort' => class_basename($this->getBaseClass()), |
||
44 | 'name' => class_basename($this->name), |
||
45 | 'group' => 'exampleGroup', |
||
46 | ]; |
||
47 | |||
48 | $actor = ($suiteSettings['actor'] ?? $moduleSettings['actor']) ?? 'Tester'; |
||
49 | $baseSettings['actorClass'] = $this->suite . '\\' . $actor; |
||
50 | |||
51 | return $baseSettings; |
||
52 | } |
||
53 | |||
55 |