Completed
Push — develop ( 2e1df2...27dbda )
by Mathieu
03:22
created

AppTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 34
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A testIsProduction() 0 6 1
A testIsDevelopment() 0 6 1
A testIsPrelive() 0 6 1
A testIsDebug() 0 6 1
1
<?php
2
class AppTest extends PHPUnit_Framework_TestCase {
0 ignored issues
show
Bug introduced by
The type PHPUnit_Framework_TestCase 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...
3
    
4
    public function testIsDebug()
5
    {
6
        $app = new \Suricate\App();
7
        $app->mode = \Suricate\App::DEBUG_MODE;
8
        
9
        $this->assertTrue($app->isDebug());
10
    }
11
12
    public function testIsDevelopment()
13
    {
14
        $app = new \Suricate\App();
15
        $app->mode = \Suricate\App::DEVELOPMENT_MODE;
16
        
17
        $this->assertTrue($app->isDevelopment());
18
    }
19
20
    public function testIsPrelive()
21
    {
22
        $app = new \Suricate\App();
23
        $app->mode = \Suricate\App::PRELIVE_MODE;
24
        
25
        $this->assertTrue($app->isPrelive());
26
    }
27
28
    public function testIsProduction()
29
    {
30
        $app = new \Suricate\App();
31
        $app->mode = \Suricate\App::PRODUCTION_MODE;
32
        
33
        $this->assertTrue($app->isProduction());
34
    }
35
}
36