DoctrineUnitOfWorkPhpCodeTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateEntityPhpCode() 0 4 1
1
<?php
2
3
namespace steevanb\DoctrineEvents\Tests;
4
5
use Doctrine\ORM\UnitOfWork;
6
7
class DoctrineUnitOfWorkPhpCodeTest extends \PHPUnit_Framework_TestCase
8
{
9
    use AssertPhpCodeTrait;
10
11
    /**
12
     * Compare doctrine UnitOfWork::createEntity() code with code was copied into
13
     * steevanb\DoctrineEvents\Doctrine\ORM\UnitOfWork
14
     * Works for Doctrine 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, and maybe next releases
15
     */
16
    public function testCreateEntityPhpCode()
17
    {
18
        $this->assertPhpCode(UnitOfWork::class, 'createEntity', 'DoctrineUnitOfWorkCreateEntityPhpCode.txt');
19
    }
20
}
21