EnvironmentTest::testKnowsWhichEnvironmentItIs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 16
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace RemotelyLiving\PHPEnv\Tests\Unit;
4
5
use RemotelyLiving\PHPEnv\Environment;
6
use RemotelyLiving\PHPEnv\EnvironmentType;
7
8
class EnvironmentTest extends AbstractTestCase
9
{
10
    public function testKnowsWhichEnvironmentItIs(): void
11
    {
12
        $this->assertTrue(
13
            Environment::create(EnvironmentType::DEVELOPMENT())->is(EnvironmentType::DEVELOPMENT())
14
        );
15
16
        $this->assertTrue(
17
            Environment::create(EnvironmentType::STAGE())->is(EnvironmentType::STAGE())
18
        );
19
20
        $this->assertTrue(
21
            Environment::create(EnvironmentType::QA())->is(EnvironmentType::QA())
22
        );
23
24
        $this->assertTrue(
25
            Environment::create(EnvironmentType::PRODUCTION())->is(EnvironmentType::PRODUCTION())
26
        );
27
    }
28
}
29