Code Duplication    Length = 14-14 lines in 2 locations

tests/Services/TestServices.php 2 locations

@@ 61-74 (lines=14) @@
58
     * @param string $message
59
     * @dataProvider successServiceProvider
60
     */
61
    public function testIsSuccessService(
62
        $serviceName,
63
        $method,
64
        $willReturn,
65
        $repository,
66
        $entity,
67
        $logger,
68
        $expected,
69
        $message
70
    ) {
71
        $repository->expects($this->once())->method($method)->will($this->returnValue($willReturn));
72
        $service = new $serviceName($repository, $entity, $logger);
73
        $this->assertEquals($expected, $service->run(), $message);
74
    }
75
76
    /**
77
     * @param $serviceName
@@ 87-100 (lines=14) @@
84
     * @param $message
85
     * @dataProvider failureServiceProvider
86
     */
87
    public function testIsFailureService(
88
        $serviceName,
89
        $method,
90
        $willReturn,
91
        $repository,
92
        $entity,
93
        $logger,
94
        $expected,
95
        $message
96
    ) {
97
        $repository->expects($this->once())->method($method)->will($this->returnValue($willReturn));
98
        $service = new $serviceName($repository, $entity, $logger);
99
        $this->assertEquals($expected, $service->run(), $message);
100
    }
101
102
    /**
103
     * @param $serviceName