Completed
Pull Request — master (#42)
by Daniel
02:21
created

DoctrinePhpcrBench::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Psi\Component\ContentType\Benchmark;
4
5
use Psi\Bridge\ContentType\Doctrine\PhpcrOdm\Tests\Functional\Example\Article;
6
use Psi\Bridge\ContentType\Doctrine\PhpcrOdm\Tests\Functional\PhpcrOdmTestCase;
7
use Psi\Component\ContentType\Tests\Functional\Example\Model\Image;
8
9
/**
10
 * @BeforeMethods({"setUp"})
11
 * @Revs(1)
12
 * @Iterations(10)
13
 * @OutputTimeUnit("milliseconds", precision=2)
14
 */
15
class DoctrinePhpcrBench extends PhpcrOdmTestCase
16
{
17
    use DoctrineBenchTrait;
18
19
    public function setUp()
20
    {
21
        $container = $this->getContainer();
22
        $this->objectManager = $container->get('doctrine_phpcr.document_manager');
23
        $this->initPhpcr($this->objectManager);
24
    }
25
}
26