Code Duplication    Length = 18-19 lines in 2 locations

tests/TestChat.php 1 location

@@ 29-47 (lines=19) @@
26
    }
27
28
29
    public function test_authRegister()
30
    {
31
32
        $output = $this->obRegister->authRegister(
33
            [
34
                "name" => 'Test',
35
                "email" => '[email protected]',
36
                "username" => 'test',
37
                "mob" => '1234567890',
38
                "passRegister" => 'testing'
39
            ]
40
        );
41
        $output = (array)json_decode($output);
42
        $this->assertEquals([
43
            'location' => 'http://127.0.0.1/openchat/views/account.php'
44
            ], $output);
45
        $sessionId = session_id();
46
        return $sessionId;
47
    }
48
49
    /**
50
    * @depends test_authRegister

tests/TestUser.php 1 location

@@ 34-51 (lines=18) @@
31
    }
32
33
34
    public function test_authRegister()
35
    {
36
37
        $output = $this->obRegister->authRegister(
38
            [
39
                "name" => 'Test',
40
                "email" => '[email protected]',
41
                "username" => 'test',
42
                "mob" => '1234567890',
43
                "passRegister" => 'testing'
44
            ]
45
        );
46
        $output = (array)json_decode($output);
47
        $this->assertEquals([
48
            'location' => 'http://127.0.0.1/openchat/views/account.php'
49
            ], $output);
50
51
    }
52
53
    /**
54
    * @depends test_authRegister