testCreateEntityPhpCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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