ModuleExampleBench::bench_class_resolving()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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