Code Duplication    Length = 10-10 lines in 2 locations

tests/unit/Security/RbacRequestVoterTest.php 2 locations

@@ 79-88 (lines=10) @@
76
    /**
77
     * @test
78
     */
79
    public function willAbstainWhenRequestHasNoSwaggerPath()
80
    {
81
        /** @var TokenInterface $token */
82
        $token = $this->getMockForAbstractClass(TokenInterface::class);
83
84
        $this->assertEquals(
85
            VoterInterface::ACCESS_ABSTAIN,
86
            $this->voter->vote($token, $this->createRequest([]), [RequestAuthorizationListener::ATTRIBUTE])
87
        );
88
    }
89
90
    /**
91
     * @test
@@ 93-102 (lines=10) @@
90
    /**
91
     * @test
92
     */
93
    public function willAbstainWhenAttributesNotFromListener()
94
    {
95
        /** @var TokenInterface $token */
96
        $token = $this->getMockForAbstractClass(TokenInterface::class);
97
98
        $this->assertEquals(
99
            VoterInterface::ACCESS_ABSTAIN,
100
            $this->voter->vote($token, $this->createRequest([]), ['something else'])
101
        );
102
    }
103
104
    /**
105
     * @test