Completed
Pull Request — master (#2)
by Mathieu
05:06 queued 01:16
created

AppTest::testIsProduction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 10
c 1
b 0
f 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