Test Failed
Branch develop (db5506)
by Felipe
03:46
created

DatabaseGroupTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A DatabaseGroupTest() 0 18 1
1
<?php
2
/**
3
 * Function area     : Database.
4
 * This is group test file for database.
5
 *
6
 * @author     Augmentum SpikeSource Team
7
 * @copyright  Copyright (c) 2005 by Augmentum, Inc.
8
 */
9
10
 require_once ('DatabaseTest.php');
11
 require_once ('SqlTest.php');
12
 require_once ('FindObjectsTest.php');
13
 require_once ('VariablesTest.php');
14
 require_once ('SchemaBasicTest.php');
15
 require_once ('AdminTest.php');
16
 require_once ('ProcessesTest.php');
17
 require_once ('LanguageTest.php');
18
 require_once ('CastsTest.php');
19
 require_once ('HelpTest.php');
20
21
22
/**
23
 * Run all the test cases as one group.
24
 */
25
 class DatabaseGroupTest 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...
26
 {
27
    function DatabaseGroupTest()
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...
28
    {
29
        $this->GroupTest('Database group test begins.');
30
31
        /*
32
         * Hides it temporary.
33
         * $this->addTestClass(new TableTest());
34
         */
35
        $this->addTestClass(new SqlTest());
36
        $this->addTestClass(new DatabaseTest());
37
        $this->addTestClass(new FindObjectsTest());
38
        $this->addTestClass(new VariablesTest());
39
        $this->addTestClass(new SchemaBasicTest());
40
        $this->addTestClass(new AdminTest());
41
        $this->addTestClass(new ProcessesTest());
42
        $this->addTestClass(new LanguageTest());
43
        $this->addTestClass(new CastsTest());
44
		$this->addTestClass(new HelpTest());
45
    }
46
 }
47
48
?>
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...
49