Completed
Branch master (1a6d40)
by Mathieu
01:34
created

AppTest::testIsDevelopment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php
2
class AppTest extends PHPUnit_Framework_TestCase {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

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