Passed
Push — master ( 02b7f4...c1cbf5 )
by Gaetano
07:18
created

MessagesTest::tear_down()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 4
eloc 7
nc 3
nop 0
dl 0
loc 9
rs 10
c 1
b 0
f 0
1
<?php
2
3
include_once __DIR__ . '/LogAwareTestCase.php';
4
5
/**
6
 * Tests involving Requests and Responses, except for the parsing part
7
 */
8
class MessagesTest extends PhpXmlRpc_LogAwareTestCase
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