Passed
Push — master ( 1a96d2...6722ee )
by Gaetano
04:55
created

ExtraFilesTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A testVerifyCompat() 0 3 1
A set_up() 0 7 1
A testBenchmark() 0 3 1
A testVarDemo() 0 4 1
1
<?php
2
3
include_once __DIR__ . '/WebTestCase.php';
4
5
/**
6
 * Tests for php files in the 'extras' directory
7
 *
8
 */
9
class ExtraFilesTest extends PhpXmlRpc_WebTestCase
10
{
11
    public function set_up()
12
    {
13
        $this->args = argParser::getArgs();
14
15
        $this->baseUrl = $this->args['HTTPSERVER'] . str_replace( '/demo/server/server.php', '/extras/', $this->args['HTTPURI'] );
16
17
        $this->coverageScriptUrl = 'http://' . $this->args['HTTPSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['HTTPURI'] );
18
    }
19
20
    /**
21
     * @todo collect code coverage for this...
22
     */
23
    public function testBenchmark()
24
    {
25
        $page = $this->request('benchmark.php');
0 ignored issues
show
Unused Code introduced by
The assignment to $page is dead and can be removed.
Loading history...
26
    }
27
28
    /**
29
     * @todo collect code coverage for this...
30
     */
31
    public function testVerifyCompat()
32
    {
33
        $page = $this->request('verify_compat.php');
0 ignored issues
show
Unused Code introduced by
The assignment to $page is dead and can be removed.
Loading history...
34
    }
35
36
    public function testVarDemo()
37
    {
38
        $this->baseUrl = str_replace('/extras/', '/demo/', $this->baseUrl);
39
        $page = $this->request('vardemo.php');
0 ignored issues
show
Unused Code introduced by
The assignment to $page is dead and can be removed.
Loading history...
40
    }
41
}
42