Code Duplication    Length = 9-9 lines in 2 locations

projects/packages/connection/tests/php/test_jetpack_xmlrpc_server.php 2 locations

@@ 82-90 (lines=9) @@
79
	/**
80
	 * Test test_xmlrpc_get_user_by_id
81
	 */
82
	public function test_xmlrpc_get_user_invalid_input() {
83
		$server = new Jetpack_XMLRPC_Server();
84
85
		$missing_response = $server->get_user( '' );
86
87
		$this->assertEquals( 'IXR_Error', get_class( $missing_response ) );
88
		$this->assertEquals( 400, $missing_response->code );
89
		$this->assertEquals( 'Jetpack: [invalid_user] Invalid user identifier.', $missing_response->message );
90
	}
91
92
	/**
93
	 * Test test_xmlrpc_get_user_by_id
@@ 95-103 (lines=9) @@
92
	/**
93
	 * Test test_xmlrpc_get_user_by_id
94
	 */
95
	public function test_xmlrpc_get_user_no_matching_user() {
96
		$server = new Jetpack_XMLRPC_Server();
97
98
		$missing_response = $server->get_user( '[email protected]' );
99
100
		$this->assertEquals( 'IXR_Error', get_class( $missing_response ) );
101
		$this->assertEquals( 404, $missing_response->code );
102
		$this->assertEquals( 'Jetpack: [user_unknown] User not found.', $missing_response->message );
103
	}
104
105
	/**
106
	 * Test test_xmlrpc_get_user_by_id