Code Duplication    Length = 10-11 lines in 2 locations

src/Bankiru/Api/Rpc/Tests/RpcTest.php 2 locations

@@ 62-71 (lines=10) @@
59
    /**
60
     * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
61
     */
62
    public function test404()
63
    {
64
        $client = self::createClient();
65
66
        $client->request(
67
            'POST',
68
            '/not_found_endpoint/',
69
            array_replace(['method' => 'test/method',], ['arg' => 1])
70
        );
71
    }
72
73
    /**
74
     * @expectedException \Bankiru\Api\Rpc\Routing\Exception\MethodNotFoundException
@@ 76-86 (lines=11) @@
73
    /**
74
     * @expectedException \Bankiru\Api\Rpc\Routing\Exception\MethodNotFoundException
75
     */
76
    public function testMethodNotFound()
77
    {
78
        $client = self::createClient();
79
80
        $client->request(
81
            'POST',
82
            '/test/',
83
            array_replace(['method' => 'unknown/method'], ['arg' => 1])
84
        );
85
86
    }
87
88
    protected static function getKernelClass()
89
    {