Completed
Pull Request — master (#2)
by Mathieu
05:06 queued 01:16
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
3
{
4
    
5
    public function testIsDebug()
6
    {
7
        $app = new \Suricate\App();
8
        $app->mode = \Suricate\App::DEBUG_MODE;
9
        
10
        $this->assertTrue($app->isDebug());
11
    }
12
13
    public function testIsDevelopment()
14
    {
15
        $app = new \Suricate\App();
16
        $app->mode = \Suricate\App::DEVELOPMENT_MODE;
17
        
18
        $this->assertTrue($app->isDevelopment());
19
    }
20
21
    public function testIsPrelive()
22
    {
23
        $app = new \Suricate\App();
24
        $app->mode = \Suricate\App::PRELIVE_MODE;
25
        
26
        $this->assertTrue($app->isPrelive());
27
    }
28
29
    public function testIsProduction()
30
    {
31
        $app = new \Suricate\App();
32
        $app->mode = \Suricate\App::PRODUCTION_MODE;
33
        
34
        $this->assertTrue($app->isProduction());
35
    }
36
}
37