Completed
Push — master ( 1f04bf...cc1bbe )
by Daniel
07:04 queued 04:13
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
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 11
rs 10

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
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');
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Pimple\Container>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
21
        $this->initOrm($this->objectManager);
22
    }
23
}
24