Code Duplication    Length = 12-12 lines in 3 locations

Test/Tests/RpcTest.php 1 location

@@ 40-51 (lines=12) @@
37
     *
38
     * @throws InvalidMethodParametersException
39
     */
40
    public function testValidController(array $args)
41
    {
42
        $client = self::createClient();
43
44
        $client->request(
45
            'POST',
46
            '/test/',
47
            array_replace(['method' => 'test/method',], $args)
48
        );
49
50
        self::assertTrue($client->getResponse()->isSuccessful());
51
    }
52
53
    /**
54
     * @dataProvider getInvalidArgumentVariants

Test/Tests/SecurityControllerTest.php 2 locations

@@ 10-21 (lines=12) @@
7
8
final class SecurityControllerTest extends WebTestCase
9
{
10
    public function testPublicAction()
11
    {
12
        $client = self::createClient();
13
14
        $client->request(
15
            'POST',
16
            '/test/',
17
            ['method' => 'security/public']
18
        );
19
20
        self::assertTrue($client->getResponse()->isSuccessful());
21
    }
22
23
    /**
24
     * @expectedException \Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException
@@ 27-38 (lines=12) @@
24
     * @expectedException \Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException
25
     * @expectedExceptionMessage Full authentication is required to access this resource.
26
     */
27
    public function testPrivateAction()
28
    {
29
        $client = self::createClient();
30
31
        $client->request(
32
            'POST',
33
            '/test/',
34
            ['method' => 'security/private']
35
        );
36
37
        self::assertTrue($client->getResponse()->isSuccessful());
38
    }
39
40
    protected static function getKernelClass()
41
    {