Completed
Pull Request — master (#42)
by Daniel
05:47 queued 03:05
created

DoctrineOrmBench::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
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\Orm\Tests\Functional\OrmTestCase;
6
7
/**
8
 * @BeforeMethods({"setUp"})
9
 * @Revs(1)
10
 * @Iterations(10)
11
 * @OutputTimeUnit("milliseconds", precision=2)
12
 */
13
class DoctrineOrmBench extends OrmTestCase
14
{
15
    use DoctrineBenchTrait;
16
17
    public function setUp()
18
    {
19
        $container = $this->getBenchContainer();
20
        $this->objectManager = $container->get('doctrine.entity_manager');
21
        $this->initOrm($this->objectManager);
22
    }
23
}
24