Completed
Push — master ( f7f008...2d0f6c )
by
unknown
02:21
created

ContextFactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateAContext() 0 8 1
1
<?php
2
namespace Netdudes\DataSourceryBundle\Tests\Extension;
3
4
use Netdudes\DataSourceryBundle\Extension\Context;
5
use Netdudes\DataSourceryBundle\Extension\ContextFactory;
6
7
class ContextFactoryTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testCreateAContext()
10
    {
11
        $entityClass = 'entity class';
12
        $contextFactory = new ContextFactory();
13
        $context = $contextFactory->create($entityClass);
14
15
        $this->assertInstanceOf(Context::class, $context);
16
    }
17
}
18