MessagesTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSerializePHPValResponse() 0 6 1
1
<?php
2
3
include_once __DIR__ . '/LoggerAwareTestCase.php';
4
5
/**
6
 * Tests involving Requests and Responses, except for the parsing part
7
 */
8
class MessagesTest extends PhpXmlRpc_LoggerAwareTestCase
9
{
10
    public function testSerializePHPValResponse()
11
    {
12
        $r = new \PhpXmlRpc\Response(array('hello' => 'world'), 0, '', 'phpvals');
13
        $v = $r->serialize();
14
        $this->assertStringContainsString('<member><name>hello</name>', $v);
15
        $this->assertStringContainsString('<value><string>world</string></value>', $v);
16
    }
17
}
18