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

DoctrineOrmBench   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 11
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
1
<?php
2
3
namespace Psi\Component\ContentType\Benchmark;
4
5
use Psi\Bridge\ContentType\Doctrine\Orm\Tests\Functional\OrmTestCase;
6
use Psi\Component\ContentType\Tests\Functional\Example\Model\Article;
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 DoctrineOrmBench extends OrmTestCase
16
{
17
    use DoctrineBenchTrait;
18
19
    public function setUp()
20
    {
21
        $container = $this->getContainer();
22
        $this->objectManager = $container->get('doctrine.entity_manager');
23
        $this->initOrm($this->objectManager);
24
    }
25
}
26