Completed
Push — develop ( c3e516...743077 )
by Jaap
24s
created

ProjectFactoryBench   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
A benchCreateSingleFileProject() 0 4 1
1
<?php
2
3
namespace phpDocumentor\Reflection;
4
5
use phpDocumentor\Reflection\File\LocalFile;
6
7
/**
8
 * @BeforeMethods({"init"})
9
 */
10
final class ProjectFactoryBench
11
{
12
    /**
13
     * @var ProjectFactory
14
     */
15
    private $factory;
16
17
    public function init()
18
    {
19
        $this->factory = \phpDocumentor\Reflection\Php\ProjectFactory::createInstance();
20
    }
21
22
    /**
23
     * @Revs({1, 8, 64, 1024})
24
     */
25
    public function benchCreateSingleFileProject()
26
    {
27
        $this->factory->create('myProject', [new LocalFile(__DIR__ . '/../assets/phpunit_assert.php')]);
28
    }
29
}
30