DoctrineTestCaseTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 29
rs 10
wmc 3
lcom 1
cbo 2

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 4 1
A testSetUp() 0 7 1
1
<?php
2
3
namespace KochTest\Tests;
4
5
use Koch\Tests\DoctrineTestCase;
6
7
class DoctrineTestCaseTest extends \PHPUnit_Framework_TestCase
8
{
9
    /**
10
     * @var DoctrineTestCase
11
     */
12
    protected $object;
13
14
    public function setUp()
15
    {
16
        $this->object = new DoctrineTestCase();
17
    }
18
19
    public function tearDown()
20
    {
21
        unset($this->object);
22
    }
23
24
    /**
25
     * @covers Koch\Tests\DoctrineTestCase::setUp
26
     * @covers Koch\Tests\DoctrineTestCase::getEntityManager
27
     */
28
    public function testSetUp()
29
    {
30
        $this->object->setUp();
31
        $em = $this->object->getEntityManager();
32
        $this->assertTrue(is_object($em));
33
        //$this->assertInstanceOf('\Doctrine\ORM\EntityManager', $em);
0 ignored issues
show
Unused Code Comprehensibility introduced by
80% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
34
    }
35
}
36