ModuleExampleBench   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A bench_class_resolving() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Benchmark\ModuleExample;
6
7
use Gacela\Framework\Gacela;
8
9
/**
10
 * @Revs(50)
11
 *
12
 * @Iterations(3)
13
 *
14
 * @BeforeMethods("setUp")
15
 */
16
final class ModuleExampleBench
17
{
18
    private ModuleExampleFacade $facade;
19
20
    public function setUp(): void
21
    {
22
        Gacela::bootstrap(__DIR__);
23
24
        $this->facade = new ModuleExampleFacade();
25
    }
26
27
    public function bench_class_resolving(): void
28
    {
29
        $this->facade->getConfigValues();
30
        $this->facade->getValueFromAbstractProvider();
31
    }
32
}
33