Completed
Pull Request — master (#2)
by Саша
36:16 queued 06:11
created

NoopTransformerSpec::it_is_initializable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 4
loc 4
rs 10
c 1
b 0
f 1
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace spec\Extraload\Transformer;
4
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8 View Code Duplication
class NoopTransformerSpec extends ObjectBehavior
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...
9
{
10
    function it_is_initializable()
11
    {
12
        $this->shouldHaveType('Extraload\Transformer\NoopTransformer');
13
    }
14
15
    function it_implements_transformer_interface()
16
    {
17
        $this->shouldImplement('Extraload\Transformer\TransformerInterface');
18
    }
19
20
    function it_returns_original_data()
21
    {
22
        $this->transform(['foo', 'bar'])->shouldReturn(['foo', 'bar']);
23
    }
24
}
25