Passed
Pull Request — develop (#92)
by Felipe
06:21
created

phpPgAdminGroupTest::phpPgAdminGroupTest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * This is entrance to run all the test suites and generate a report for the results.
4
 *
5
 * @author     Augmentum SpikeSource Team 
6
 * @copyright  2005 by Augmentum, Inc.
7
 */
8
9
// Import necessary library files to setup the testcase.
10
// And for web testcase, the library web_tester.php shoule be included.
11
12
require_once("$PHP_SIMPLETEST_HOME/web_tester.php");
13
require_once("$PHP_SIMPLETEST_HOME/reporter.php");
14
15
require_once('Public/SetPrecondition.php');  
16
17
require_once('Server/ServerGroupTest.php');
18
require_once('Databases/DatabaseGroupTest.php');
19
require_once('Schemas/SchemasGroupTest.php');
20
require_once('Tables/TableGroupTest.php');
21
require_once('Common/CommonGroupTest.php');
22
23
/**
24
 * This class is to test the whole phpPgAdmin.
25
 * It includes server/database/schema/table management and common manipulation.
26
 */
27
class phpPgAdminGroupTest extends GroupTest
0 ignored issues
show
Bug introduced by
The type GroupTest was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
28
{
29
    function phpPgAdminGroupTest() 
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
30
    {
31
		$this->GroupTest('phpPgAdmin automation test.');
32
		$this->addTestClass(new ServerGroupTest());
33
		$this->addTestClass(new DatabaseGroupTest());
34
		$this->addTestClass(new SchemasGroupTest());
35
		$this->addTestClass(new TableGroupTest());
36
		$this->addTestClass(new CommonGroupTest());
37
38
    }
39
}
40
41
$phpPgAdminTest = &new phpPgAdminGroupTest();
42
43
$phpPgAdminTest->run(new HtmlReporter());
0 ignored issues
show
Bug introduced by
The type HtmlReporter was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
44
45
?>
0 ignored issues
show
Best Practice introduced by
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
46