Code Duplication    Length = 10-16 lines in 2 locations

tests/Responses/JsonAuthenticationSuccessResponseTest.php 2 locations

@@ 15-24 (lines=10) @@
12
13
class JsonAuthenticationSuccessResponseTest extends TestCase
14
{
15
    public function testSetUser()
16
    {
17
        $resp = new JsonAuthenticationSuccessResponse();
18
        $resp->setUser('test name');
19
        $data = $this->getData($resp);
20
        $this->assertEquals(['serviceResponse' => ['authenticationSuccess' => ['user' => 'test name']]], $data);
21
        $resp->setUser('test name2');
22
        $data = $this->getData($resp);
23
        $this->assertEquals(['serviceResponse' => ['authenticationSuccess' => ['user' => 'test name2']]], $data);
24
    }
25
26
    public function testSetProxyGrantingTicket()
27
    {
@@ 26-41 (lines=16) @@
23
        $this->assertEquals(['serviceResponse' => ['authenticationSuccess' => ['user' => 'test name2']]], $data);
24
    }
25
26
    public function testSetProxyGrantingTicket()
27
    {
28
        $resp = new JsonAuthenticationSuccessResponse();
29
        $resp->setProxyGrantingTicket('ticket1');
30
        $data = $this->getData($resp);
31
        $this->assertEquals(
32
            ['serviceResponse' => ['authenticationSuccess' => ['proxyGrantingTicket' => 'ticket1']]],
33
            $data
34
        );
35
        $resp->setProxyGrantingTicket('ticket2');
36
        $data = $this->getData($resp);
37
        $this->assertEquals(
38
            ['serviceResponse' => ['authenticationSuccess' => ['proxyGrantingTicket' => 'ticket2']]],
39
            $data
40
        );
41
    }
42
43
    public function testSetProxies()
44
    {