GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#9)
by Helpful
09:13
created

DirectorEnvReporterTest::testIsLive()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 16
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace Camspiers\LoggerBridge;
4
5
use Config;
6
use Camspiers\LoggerBridge\EnvReporter\DirectorEnvReporter;
7
8
class DirectorEnvReporterTest extends \PHPUnit_Framework_TestCase
9
{
10
    public function testIsLive()
11
    {
12
        Config::inst()->update('Director', 'environment_type', 'dev');
13
14
        $reporter = new DirectorEnvReporter();
15
16
        $this->assertEquals(false, $reporter->isLive());
17
18
        Config::inst()->update('Director', 'environment_type', 'test');
19
20
        $this->assertEquals(false, $reporter->isLive());
21
22
        Config::inst()->update('Director', 'environment_type', 'live');
23
24
        $this->assertEquals(true, $reporter->isLive());
25
    }
26
}
27