LegacyAPITest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLegacyLoader() 0 9 1
1
<?php
2
3
include_once __DIR__ . '/ServerAwareTestCase.php';
4
5
/**
6
 * @todo Long-term, this should replace all testing of the legacy API done via the main test-suite...
7
 * - usage of xmlrpc_ class names
8
 * - calling deprecated methods
9
 * - calling of methods using deprecated conventions
10
 */
11
class LegacyAPITest extends PhpXmlRpc_ServerAwareTestCase
12
{
13
    public function testLegacyLoader()
14
    {
15
        /// @todo pass on as cli args for the executed script all the args that are already parsed by now, plus $this->testId
16
17
        exec('php ' . __DIR__ . '/legacy_loader_test.php', $out, $result);
18
19
        /// @todo dump output if in debug mode or if test fails
20
21
        $this->assertEquals(0, $result);
22
    }
23
}
24