Completed
Push — master ( ecd220...59c7a5 )
by GBProd
02:21
created

HasFinishedProvidingTest::testConstruction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 9

Duplication

Lines 15
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 15
loc 15
rs 9.4285
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
namespace Tests\GBProd\ElasticsearchDataProviderBundle\Event;
4
5
use GBProd\ElasticsearchDataProviderBundle\Event\HasFinishedProviding;
6
use GBProd\ElasticsearchDataProviderBundle\DataProvider\RegistryEntry;
7
8
/**
9
 * Tests for HasFinishedProviding
10
 * 
11
 * @author gbprod <[email protected]>
12
 */
13 View Code Duplication
class HasFinishedProvidingTest extends \PHPUnit_Framework_TestCase
1 ignored issue
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
14
{
15
    public function testConstruction()
16
    {
17
        $entry = $this
18
            ->getMockBuilder(RegistryEntry::class)
19
            ->disableOriginalConstructor()
20
            ->getMock()
21
        ;
22
        
23
        $testedInstance = new HasFinishedProviding($entry);
24
        
25
        $this->assertEquals(
26
            $entry,
27
            $testedInstance->getEntry()
28
        );
29
    }
30
}
31