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() |
||
35 | } |
||
36 | } |
||
37 |