Code Duplication    Length = 17-22 lines in 2 locations

spec/Extraload/Transformer/CallbackTransformerSpec.php 1 location

@@ 8-29 (lines=22) @@
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8
class CallbackTransformerSpec extends ObjectBehavior
9
{
10
    function let()
11
    {
12
        $this->beConstructedWith('array_reverse');
13
    }
14
15
    function it_is_initializable()
16
    {
17
        $this->shouldHaveType('Extraload\Transformer\CallbackTransformer');
18
    }
19
20
    function it_implements_transformer_interface()
21
    {
22
        $this->shouldImplement('Extraload\Transformer\TransformerInterface');
23
    }
24
25
    function it_transforms_data_using_callback()
26
    {
27
        $this->transform(['foo', 'bar'])->shouldReturn(['bar', 'foo']);
28
    }
29
}
30

spec/Extraload/Transformer/NoopTransformerSpec.php 1 location

@@ 8-24 (lines=17) @@
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8
class NoopTransformerSpec extends ObjectBehavior
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