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

MessagesTest::set_up()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 6
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