Passed
Push — master ( f34faa...991f00 )
by Gaetano
06:57
created

LegacyAPITest::testLegacyLoader()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 2
c 1
b 1
f 1
nc 1
nop 0
dl 0
loc 9
rs 10
1
<?php
2
3
include_once __DIR__ . '/ServerAwareTestCase.php';
4
5
/**
6
 * Long-term, this should replace all testing of the legacy API done via the main test-suite...
7
 */
8
class LegacyAPITest extends PhpXmlRpc_ServerAwareTestCase
9
{
10
    public function testLegacyLoader()
11
    {
12
        /// @todo pass on as cli args for the executed script all the args that are already parsed by now
13
14
        exec('php ' . __DIR__ . '/legacy_loader_test.php', $out, $result);
15
16
        /// @todo dump output if in debug mode or if test fails
17
18
        $this->assertEquals(0, $result);
19
    }
20
}
21