Code Duplication    Length = 11-14 lines in 2 locations

Tests/EventListener/ControllerListenerTest.php 1 location

@@ 31-44 (lines=14) @@
28
     */
29
    protected $transactionLogger;
30
31
    public function setUp()
32
    {
33
        $this->transactionLogger = $this->getMockBuilder(TransactionLogger::class)
34
            ->disableOriginalConstructor()
35
            ->getMock()
36
        ;
37
38
        $this->listener = new ControllerListener($this->transactionLogger, new AnnotationReader());
39
40
        $this->request = new Request();
41
42
        // trigger the autoloading of the @LogHttpTransaction annotation
43
        class_exists('Loevgaard\DandomainAltapayBundle\Annotation\LogHttpTransaction');
44
    }
45
46
    public function tearDown()
47
    {

Tests/EventListener/ResponseListenerTest.php 1 location

@@ 35-45 (lines=11) @@
32
     */
33
    protected $transactionLogger;
34
35
    public function setUp()
36
    {
37
        $this->transactionLogger = $this->getMockBuilder(TransactionLogger::class)
38
            ->disableOriginalConstructor()
39
            ->getMock()
40
        ;
41
42
        $this->listener = new ResponseListener($this->transactionLogger);
43
        $this->request = new Request();
44
        $this->response = new Response();
45
    }
46
47
    public function tearDown()
48
    {