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

benchCreateSingleFileProject()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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